Package org.apache.cxf.ws.security.wss4j
Class PolicyBasedWSS4JStaxInInterceptor
java.lang.Object
org.apache.cxf.ws.security.wss4j.AbstractWSS4JStaxInterceptor
org.apache.cxf.ws.security.wss4j.WSS4JStaxInInterceptor
org.apache.cxf.ws.security.wss4j.PolicyBasedWSS4JStaxInInterceptor
- All Implemented Interfaces:
org.apache.cxf.binding.soap.interceptor.SoapInterceptor,Interceptor<org.apache.cxf.binding.soap.SoapMessage>,PhaseInterceptor<org.apache.cxf.binding.soap.SoapMessage>
-
Field Summary
Fields inherited from class org.apache.cxf.ws.security.wss4j.WSS4JStaxInInterceptor
SECURITY_PROCESSED -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidconfigureProperties(org.apache.cxf.binding.soap.SoapMessage msg, WSSSecurityProperties securityProperties) protected List<org.apache.xml.security.stax.securityEvent.SecurityEventListener>configureSecurityEventListeners(org.apache.cxf.binding.soap.SoapMessage msg, WSSSecurityProperties securityProperties) protected WSSSecurityPropertiesvoidhandleMessage(org.apache.cxf.binding.soap.SoapMessage msg) Intercepts a message.protected booleanisNonceCacheRequired(org.apache.cxf.binding.soap.SoapMessage msg, WSSSecurityProperties securityProperties) Is a Nonce Cache required, i.e. are we expecting a UsernameTokenprotected booleanisSamlCacheRequired(org.apache.cxf.binding.soap.SoapMessage msg, WSSSecurityProperties securityProperties) Is a SAML Cache required, i.e. are we expecting a SAML Tokenprotected booleanisTimestampCacheRequired(org.apache.cxf.binding.soap.SoapMessage msg, WSSSecurityProperties securityProperties) Is a Timestamp cache required, i.e. are we expecting a TimestampMethods inherited from class org.apache.cxf.ws.security.wss4j.WSS4JStaxInInterceptor
isGETMethods inherited from class org.apache.cxf.ws.security.wss4j.AbstractWSS4JStaxInterceptor
configureCallbackHandler, getAdditionalInterceptors, getAfter, getBefore, getEncryptionCrypto, getId, getOption, getPassword, getPasswordEncryptor, getPhase, getProperties, getProperty, getRoles, getSignatureCrypto, getUnderstoodHeaders, handleFault, isRequestor, loadCrypto, loadCryptoFromPropertiesFile, postHandleMessage, setId, setPassword, setPhase, setProperty, translateProperties
-
Constructor Details
-
PolicyBasedWSS4JStaxInInterceptor
public PolicyBasedWSS4JStaxInInterceptor()
-
-
Method Details
-
handleMessage
Description copied from interface:InterceptorIntercepts a message. Interceptors should NOT invoke handleMessage or handleFault on the next interceptor - the interceptor chain will take care of this.- Specified by:
handleMessagein interfaceInterceptor<org.apache.cxf.binding.soap.SoapMessage>- Overrides:
handleMessagein classWSS4JStaxInInterceptor- Throws:
Fault
-
createSecurityProperties
- Overrides:
createSecurityPropertiesin classAbstractWSS4JStaxInterceptor
-
configureProperties
protected void configureProperties(org.apache.cxf.binding.soap.SoapMessage msg, WSSSecurityProperties securityProperties) throws org.apache.xml.security.exceptions.XMLSecurityException - Overrides:
configurePropertiesin classWSS4JStaxInInterceptor- Throws:
org.apache.xml.security.exceptions.XMLSecurityException
-
isNonceCacheRequired
protected boolean isNonceCacheRequired(org.apache.cxf.binding.soap.SoapMessage msg, WSSSecurityProperties securityProperties) Is a Nonce Cache required, i.e. are we expecting a UsernameToken- Overrides:
isNonceCacheRequiredin classWSS4JStaxInInterceptor
-
isTimestampCacheRequired
protected boolean isTimestampCacheRequired(org.apache.cxf.binding.soap.SoapMessage msg, WSSSecurityProperties securityProperties) Is a Timestamp cache required, i.e. are we expecting a Timestamp- Overrides:
isTimestampCacheRequiredin classWSS4JStaxInInterceptor
-
isSamlCacheRequired
protected boolean isSamlCacheRequired(org.apache.cxf.binding.soap.SoapMessage msg, WSSSecurityProperties securityProperties) Is a SAML Cache required, i.e. are we expecting a SAML Token- Overrides:
isSamlCacheRequiredin classWSS4JStaxInInterceptor
-
configureSecurityEventListeners
protected List<org.apache.xml.security.stax.securityEvent.SecurityEventListener> configureSecurityEventListeners(org.apache.cxf.binding.soap.SoapMessage msg, WSSSecurityProperties securityProperties) throws WSSPolicyException - Overrides:
configureSecurityEventListenersin classWSS4JStaxInInterceptor- Throws:
WSSPolicyException
-