Package org.apache.cxf.ws.security.wss4j
Class AbstractWSS4JInterceptor
java.lang.Object
org.apache.wss4j.dom.handler.WSHandler
org.apache.cxf.ws.security.wss4j.AbstractWSS4JInterceptor
- All Implemented Interfaces:
org.apache.cxf.binding.soap.interceptor.SoapInterceptor,Interceptor<org.apache.cxf.binding.soap.SoapMessage>,PhaseInterceptor<org.apache.cxf.binding.soap.SoapMessage>
- Direct Known Subclasses:
WSS4JInInterceptor,WSS4JOutInterceptor
public abstract class AbstractWSS4JInterceptor
extends WSHandler
implements org.apache.cxf.binding.soap.interceptor.SoapInterceptor, PhaseInterceptor<org.apache.cxf.binding.soap.SoapMessage>
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCollection<PhaseInterceptor<? extends Message>>Returns a collection of Interceptors that should be added to the chain whenever this interceptor is added.getAfter()Returns a set containing the IDs of the interceptors that should be executed before this interceptor.Returns a set containing the IDs of the interceptors that should be executed after this interceptor.getId()Returns the ID of this interceptor.getPassword(Object msgContext) getPhase()Returns the phase in which this interceptor is excecuted.getProperty(Object msgContext, String key) getRoles()voidhandleFault(org.apache.cxf.binding.soap.SoapMessage message) Called for all interceptors (in reverse order) on which handleMessage had been successfully invoked, when normal execution of the chain was aborted for some reason.protected booleanisRequestor(org.apache.cxf.binding.soap.SoapMessage message) protected CryptoloadCryptoFromPropertiesFile(String propFilename, RequestData reqData) A hook to allow subclass to load Crypto instances from property files in a different way.voidpostHandleMessage(org.apache.cxf.binding.soap.SoapMessage message) voidvoidsetPassword(Object msgContext, String password) voidvoidsetProperties(Map<String, Object> properties) voidsetProperty(Object msgContext, String key, Object value) voidsetProperty(String key, String value) protected voidtranslateProperties(org.apache.cxf.binding.soap.SoapMessage msg) Methods inherited from class org.apache.wss4j.dom.handler.WSHandler
checkReceiverResults, checkReceiverResultsAnyOrder, checkSignatureConfirmation, decodeAlgorithmSuite, decodeBooleanConfigValue, decodeDecryptionParameter, decodeEncryptionParameter, decodeFutureTimeToLive, decodePasswordType, decodeSignatureParameter, decodeSignatureParameter2, decodeTimeToLive, decodeUTParameter, doReceiverAction, doSenderAction, getCallbackHandler, getClassLoader, getPasswordCallbackHandler, getPasswordCB, getPasswordEncryptor, getString, getStringOption, loadCrypto, loadDecryptionCrypto, loadEncryptionCrypto, loadSignatureCrypto, loadSignatureVerificationCryptoMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.cxf.interceptor.Interceptor
handleMessage
-
Constructor Details
-
AbstractWSS4JInterceptor
public AbstractWSS4JInterceptor()
-
-
Method Details
-
getRoles
- Specified by:
getRolesin interfaceorg.apache.cxf.binding.soap.interceptor.SoapInterceptor
-
handleFault
public void handleFault(org.apache.cxf.binding.soap.SoapMessage message) Description copied from interface:InterceptorCalled for all interceptors (in reverse order) on which handleMessage had been successfully invoked, when normal execution of the chain was aborted for some reason.- Specified by:
handleFaultin interfaceInterceptor<org.apache.cxf.binding.soap.SoapMessage>
-
postHandleMessage
- Throws:
Fault
-
getAdditionalInterceptors
Description copied from interface:PhaseInterceptorReturns a collection of Interceptors that should be added to the chain whenever this interceptor is added. May return null.- Specified by:
getAdditionalInterceptorsin interfacePhaseInterceptor<org.apache.cxf.binding.soap.SoapMessage>- Returns:
- the collection of interceptors
-
getPhase
Description copied from interface:PhaseInterceptorReturns the phase in which this interceptor is excecuted.- Specified by:
getPhasein interfacePhaseInterceptor<org.apache.cxf.binding.soap.SoapMessage>- Returns:
- the phase
-
setPhase
-
getOption
-
setProperty
-
getPassword
- Specified by:
getPasswordin classWSHandler
-
getProperty
- Specified by:
getPropertyin classWSHandler
-
setPassword
- Specified by:
setPasswordin classWSHandler
-
setProperty
- Specified by:
setPropertyin classWSHandler
-
getId
Description copied from interface:PhaseInterceptorReturns the ID of this interceptor.- Specified by:
getIdin interfacePhaseInterceptor<org.apache.cxf.binding.soap.SoapMessage>- Returns:
- the ID
-
setId
-
getUnderstoodHeaders
- Specified by:
getUnderstoodHeadersin interfaceorg.apache.cxf.binding.soap.interceptor.SoapInterceptor
-
getProperties
-
setProperties
-
getAfter
Description copied from interface:PhaseInterceptorReturns a set containing the IDs of the interceptors that should be executed before this interceptor. This interceptor will be placed in the chain after the interceptors in the set.- Specified by:
getAfterin interfacePhaseInterceptor<org.apache.cxf.binding.soap.SoapMessage>- Returns:
- the IDs of the interceptors
-
getBefore
Description copied from interface:PhaseInterceptorReturns a set containing the IDs of the interceptors that should be executed after this interceptor. This interceptor will be placed in the inteceptor chain before the interceptors in the set.- Specified by:
getBeforein interfacePhaseInterceptor<org.apache.cxf.binding.soap.SoapMessage>- Returns:
- the ids of the interceptors
-
isRequestor
protected boolean isRequestor(org.apache.cxf.binding.soap.SoapMessage message) -
translateProperties
protected void translateProperties(org.apache.cxf.binding.soap.SoapMessage msg) -
loadCryptoFromPropertiesFile
protected Crypto loadCryptoFromPropertiesFile(String propFilename, RequestData reqData) throws WSSecurityException Description copied from class:WSHandlerA hook to allow subclass to load Crypto instances from property files in a different way.- Overrides:
loadCryptoFromPropertiesFilein classWSHandler- Parameters:
propFilename- The property file namereqData- The RequestData object- Returns:
- A Crypto instance that has been loaded
- Throws:
WSSecurityException
-