org.apache.cxf.ws.security.wss4j
Class AbstractWSS4JInterceptor

java.lang.Object
  extended by org.apache.ws.security.handler.WSHandler
      extended by org.apache.cxf.ws.security.wss4j.AbstractWSS4JInterceptor
All Implemented Interfaces:
org.apache.cxf.binding.soap.interceptor.SoapInterceptor, org.apache.cxf.interceptor.Interceptor<org.apache.cxf.binding.soap.SoapMessage>, org.apache.cxf.phase.PhaseInterceptor<org.apache.cxf.binding.soap.SoapMessage>
Direct Known Subclasses:
WSS4JInInterceptor, WSS4JOutInterceptor

public abstract class AbstractWSS4JInterceptor
extends org.apache.ws.security.handler.WSHandler
implements org.apache.cxf.binding.soap.interceptor.SoapInterceptor, org.apache.cxf.phase.PhaseInterceptor<org.apache.cxf.binding.soap.SoapMessage>


Field Summary
 
Fields inherited from class org.apache.ws.security.handler.WSHandler
cryptos, secEngine
 
Constructor Summary
AbstractWSS4JInterceptor()
           
 
Method Summary
 Collection<org.apache.cxf.phase.PhaseInterceptor<? extends org.apache.cxf.message.Message>> getAdditionalInterceptors()
           
 Set<String> getAfter()
           
 Set<String> getBefore()
           
 String getId()
           
 Object getOption(String key)
           
 String getPassword(Object msgContext)
           
 String getPhase()
           
 Map<String,Object> getProperties()
           
 Object getProperty(Object msgContext, String key)
           
 Set<URI> getRoles()
           
 Set<QName> getUnderstoodHeaders()
           
 void handleFault(org.apache.cxf.binding.soap.SoapMessage message)
           
protected  boolean isRequestor(org.apache.cxf.binding.soap.SoapMessage message)
           
protected  org.apache.ws.security.components.crypto.Crypto loadCryptoFromPropertiesFile(String propFilename, org.apache.ws.security.handler.RequestData reqData)
           
 void postHandleMessage(org.apache.cxf.binding.soap.SoapMessage message)
           
 void setAfter(Set<String> after)
           
 void setBefore(Set<String> before)
           
 void setId(String id)
           
 void setPassword(Object msgContext, String password)
           
 void setPhase(String phase)
           
 void setProperties(Map<String,Object> properties)
           
 void setProperty(Object msgContext, String key, Object value)
           
 void setProperty(String key, String value)
           
protected  void translateProperties(org.apache.cxf.binding.soap.SoapMessage msg)
           
 
Methods inherited from class org.apache.ws.security.handler.WSHandler
checkReceiverResults, checkReceiverResultsAnyOrder, checkSignatureConfirmation, decodeBooleanConfigValue, decodeBSPCompliance, decodeCustomPasswordTypes, decodeDecryptionParameter, decodeEnableSignatureConfirmation, decodeEncryptionParameter, decodeFutureTimeToLive, decodeMustUnderstand, decodeNamespaceQualifiedPasswordTypes, decodePasswordType, decodePasswordTypeStrict, decodeRequireSignedEncryptedDataElements, decodeSignatureParameter, decodeSignatureParameter2, decodeTimestampPrecision, decodeTimestampStrict, decodeTimeToLive, decodeUseEncodedPasswords, decodeUseSingleCertificate, decodeUTParameter, doReceiverAction, doSenderAction, getCallbackHandler, getClassLoader, getPasswordCallbackHandler, getPasswordCB, getString, getStringOption, loadCrypto, loadDecryptionCrypto, loadEncryptionCrypto, loadSignatureCrypto
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.cxf.interceptor.Interceptor
handleMessage
 
Methods inherited from interface org.apache.cxf.interceptor.Interceptor
handleMessage
 

Constructor Detail

AbstractWSS4JInterceptor

public AbstractWSS4JInterceptor()
Method Detail

getRoles

public Set<URI> getRoles()
Specified by:
getRoles in interface org.apache.cxf.binding.soap.interceptor.SoapInterceptor

handleFault

public void handleFault(org.apache.cxf.binding.soap.SoapMessage message)
Specified by:
handleFault in interface org.apache.cxf.interceptor.Interceptor<org.apache.cxf.binding.soap.SoapMessage>

postHandleMessage

public void postHandleMessage(org.apache.cxf.binding.soap.SoapMessage message)
                       throws org.apache.cxf.interceptor.Fault
Throws:
org.apache.cxf.interceptor.Fault

getAdditionalInterceptors

public Collection<org.apache.cxf.phase.PhaseInterceptor<? extends org.apache.cxf.message.Message>> getAdditionalInterceptors()
Specified by:
getAdditionalInterceptors in interface org.apache.cxf.phase.PhaseInterceptor<org.apache.cxf.binding.soap.SoapMessage>

getPhase

public String getPhase()
Specified by:
getPhase in interface org.apache.cxf.phase.PhaseInterceptor<org.apache.cxf.binding.soap.SoapMessage>

setPhase

public void setPhase(String phase)

getOption

public Object getOption(String key)
Specified by:
getOption in class org.apache.ws.security.handler.WSHandler

setProperty

public void setProperty(String key,
                        String value)

getPassword

public String getPassword(Object msgContext)
Specified by:
getPassword in class org.apache.ws.security.handler.WSHandler

getProperty

public Object getProperty(Object msgContext,
                          String key)
Specified by:
getProperty in class org.apache.ws.security.handler.WSHandler

setPassword

public void setPassword(Object msgContext,
                        String password)
Specified by:
setPassword in class org.apache.ws.security.handler.WSHandler

setProperty

public void setProperty(Object msgContext,
                        String key,
                        Object value)
Specified by:
setProperty in class org.apache.ws.security.handler.WSHandler

getId

public String getId()
Specified by:
getId in interface org.apache.cxf.phase.PhaseInterceptor<org.apache.cxf.binding.soap.SoapMessage>

setId

public void setId(String id)

getUnderstoodHeaders

public Set<QName> getUnderstoodHeaders()
Specified by:
getUnderstoodHeaders in interface org.apache.cxf.binding.soap.interceptor.SoapInterceptor

getProperties

public Map<String,Object> getProperties()

setProperties

public void setProperties(Map<String,Object> properties)

getAfter

public Set<String> getAfter()
Specified by:
getAfter in interface org.apache.cxf.phase.PhaseInterceptor<org.apache.cxf.binding.soap.SoapMessage>

setAfter

public void setAfter(Set<String> after)

getBefore

public Set<String> getBefore()
Specified by:
getBefore in interface org.apache.cxf.phase.PhaseInterceptor<org.apache.cxf.binding.soap.SoapMessage>

setBefore

public void setBefore(Set<String> before)

isRequestor

protected boolean isRequestor(org.apache.cxf.binding.soap.SoapMessage message)

translateProperties

protected void translateProperties(org.apache.cxf.binding.soap.SoapMessage msg)

loadCryptoFromPropertiesFile

protected org.apache.ws.security.components.crypto.Crypto loadCryptoFromPropertiesFile(String propFilename,
                                                                                       org.apache.ws.security.handler.RequestData reqData)
                                                                                throws org.apache.ws.security.WSSecurityException
Overrides:
loadCryptoFromPropertiesFile in class org.apache.ws.security.handler.WSHandler
Throws:
org.apache.ws.security.WSSecurityException


Apache CXF