public abstract class AbstractWSS4JInterceptor extends WSHandler implements org.apache.cxf.binding.soap.interceptor.SoapInterceptor, PhaseInterceptor<org.apache.cxf.binding.soap.SoapMessage>
Constructor and Description |
---|
AbstractWSS4JInterceptor() |
Modifier and Type | Method and Description |
---|---|
Collection<PhaseInterceptor<? extends Message>> |
getAdditionalInterceptors()
Returns a collection of Interceptors that should be added to the chain
whenever this interceptor is added.
|
Set<String> |
getAfter()
Returns a set containing the IDs of the interceptors that should be
executed before this interceptor.
|
Set<String> |
getBefore()
Returns a set containing the IDs of the interceptors that should be
executed after this interceptor.
|
String |
getId()
Returns the ID of this interceptor.
|
Object |
getOption(String key) |
String |
getPassword(Object msgContext) |
String |
getPhase()
Returns the phase in which this interceptor is excecuted.
|
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)
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 boolean |
isRequestor(org.apache.cxf.binding.soap.SoapMessage message) |
protected Crypto |
loadCryptoFromPropertiesFile(String propFilename,
RequestData reqData)
A hook to allow subclass to load Crypto instances from property files in a different
way.
|
void |
postHandleMessage(org.apache.cxf.binding.soap.SoapMessage message) |
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) |
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, loadSignatureVerificationCrypto
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
handleMessage
public Set<URI> getRoles()
getRoles
in interface org.apache.cxf.binding.soap.interceptor.SoapInterceptor
public void handleFault(org.apache.cxf.binding.soap.SoapMessage message)
Interceptor
handleFault
in interface Interceptor<org.apache.cxf.binding.soap.SoapMessage>
public void postHandleMessage(org.apache.cxf.binding.soap.SoapMessage message) throws Fault
Fault
public Collection<PhaseInterceptor<? extends Message>> getAdditionalInterceptors()
PhaseInterceptor
getAdditionalInterceptors
in interface PhaseInterceptor<org.apache.cxf.binding.soap.SoapMessage>
public String getPhase()
PhaseInterceptor
getPhase
in interface PhaseInterceptor<org.apache.cxf.binding.soap.SoapMessage>
public void setPhase(String phase)
public String getPassword(Object msgContext)
getPassword
in class WSHandler
public Object getProperty(Object msgContext, String key)
getProperty
in class WSHandler
public void setPassword(Object msgContext, String password)
setPassword
in class WSHandler
public void setProperty(Object msgContext, String key, Object value)
setProperty
in class WSHandler
public String getId()
PhaseInterceptor
getId
in interface PhaseInterceptor<org.apache.cxf.binding.soap.SoapMessage>
public void setId(String id)
public Set<QName> getUnderstoodHeaders()
getUnderstoodHeaders
in interface org.apache.cxf.binding.soap.interceptor.SoapInterceptor
public Set<String> getAfter()
PhaseInterceptor
getAfter
in interface PhaseInterceptor<org.apache.cxf.binding.soap.SoapMessage>
public Set<String> getBefore()
PhaseInterceptor
getBefore
in interface PhaseInterceptor<org.apache.cxf.binding.soap.SoapMessage>
protected boolean isRequestor(org.apache.cxf.binding.soap.SoapMessage message)
protected void translateProperties(org.apache.cxf.binding.soap.SoapMessage msg)
protected Crypto loadCryptoFromPropertiesFile(String propFilename, RequestData reqData) throws WSSecurityException
WSHandler
loadCryptoFromPropertiesFile
in class WSHandler
propFilename
- The property file namereqData
- The RequestData objectWSSecurityException
Copyright © 2016 JBoss by Red Hat. All rights reserved.