public abstract class AbstractWSS4JStaxInterceptor extends Object implements SoapInterceptor, PhaseInterceptor<SoapMessage>
| Constructor and Description |
|---|
AbstractWSS4JStaxInterceptor() |
AbstractWSS4JStaxInterceptor(Map<String,Object> properties) |
AbstractWSS4JStaxInterceptor(org.apache.wss4j.stax.ext.WSSSecurityProperties securityProperties) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
configureCallbackHandler(SoapMessage soapMessage,
org.apache.wss4j.stax.ext.WSSSecurityProperties securityProperties) |
protected org.apache.wss4j.stax.ext.WSSSecurityProperties |
createSecurityProperties() |
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.
|
protected org.apache.wss4j.common.crypto.Crypto |
getEncryptionCrypto(Object e,
SoapMessage message,
org.apache.wss4j.stax.ext.WSSSecurityProperties securityProperties) |
String |
getId()
Returns the ID of this interceptor.
|
Object |
getOption(String key) |
String |
getPassword(Object msgContext) |
protected org.apache.wss4j.common.crypto.PasswordEncryptor |
getPasswordEncryptor(SoapMessage soapMessage,
org.apache.wss4j.stax.ext.WSSSecurityProperties securityProperties) |
String |
getPhase()
Returns the phase in which this interceptor is excecuted.
|
Map<String,Object> |
getProperties() |
Object |
getProperty(Object msgContext,
String key) |
Set<URI> |
getRoles() |
protected org.apache.wss4j.common.crypto.Crypto |
getSignatureCrypto(Object s,
SoapMessage message,
org.apache.wss4j.stax.ext.WSSSecurityProperties securityProperties) |
Set<QName> |
getUnderstoodHeaders() |
void |
handleFault(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(SoapMessage message) |
protected org.apache.wss4j.common.crypto.Crypto |
loadCrypto(SoapMessage soapMessage,
String cryptoPropertyFile,
String cryptoPropertyRefId,
org.apache.wss4j.stax.ext.WSSSecurityProperties securityProperties)
Load a Crypto instance.
|
protected org.apache.wss4j.common.crypto.Crypto |
loadCryptoFromPropertiesFile(SoapMessage soapMessage,
String propFilename,
org.apache.wss4j.stax.ext.WSSSecurityProperties securityProperties) |
void |
postHandleMessage(SoapMessage message) |
void |
setId(String id) |
void |
setPassword(Object msgContext,
String password) |
void |
setPhase(String phase) |
void |
setProperty(Object msgContext,
String key,
Object value) |
protected void |
translateProperties(SoapMessage msg,
org.apache.wss4j.stax.ext.WSSSecurityProperties securityProperties) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waithandleMessagepublic AbstractWSS4JStaxInterceptor(org.apache.wss4j.stax.ext.WSSSecurityProperties securityProperties)
public AbstractWSS4JStaxInterceptor()
protected org.apache.wss4j.stax.ext.WSSSecurityProperties createSecurityProperties()
protected void translateProperties(SoapMessage msg, org.apache.wss4j.stax.ext.WSSSecurityProperties securityProperties)
protected void configureCallbackHandler(SoapMessage soapMessage, org.apache.wss4j.stax.ext.WSSSecurityProperties securityProperties) throws org.apache.wss4j.common.ext.WSSecurityException
org.apache.wss4j.common.ext.WSSecurityExceptionpublic Set<URI> getRoles()
getRoles in interface SoapInterceptorpublic void handleFault(SoapMessage message)
InterceptorhandleFault in interface Interceptor<SoapMessage>public void postHandleMessage(SoapMessage message) throws Fault
Faultpublic Collection<PhaseInterceptor<? extends Message>> getAdditionalInterceptors()
PhaseInterceptorgetAdditionalInterceptors in interface PhaseInterceptor<SoapMessage>public String getPhase()
PhaseInterceptorgetPhase in interface PhaseInterceptor<SoapMessage>public void setPhase(String phase)
public String getId()
PhaseInterceptorgetId in interface PhaseInterceptor<SoapMessage>public void setId(String id)
public Set<QName> getUnderstoodHeaders()
getUnderstoodHeaders in interface SoapInterceptorpublic Set<String> getAfter()
PhaseInterceptorgetAfter in interface PhaseInterceptor<SoapMessage>public Set<String> getBefore()
PhaseInterceptorgetBefore in interface PhaseInterceptor<SoapMessage>protected boolean isRequestor(SoapMessage message)
protected org.apache.wss4j.common.crypto.Crypto loadCrypto(SoapMessage soapMessage, String cryptoPropertyFile, String cryptoPropertyRefId, org.apache.wss4j.stax.ext.WSSSecurityProperties securityProperties) throws org.apache.wss4j.common.ext.WSSecurityException
org.apache.wss4j.common.ext.WSSecurityExceptionprotected org.apache.wss4j.common.crypto.Crypto loadCryptoFromPropertiesFile(SoapMessage soapMessage, String propFilename, org.apache.wss4j.stax.ext.WSSSecurityProperties securityProperties) throws org.apache.wss4j.common.ext.WSSecurityException
org.apache.wss4j.common.ext.WSSecurityExceptionprotected org.apache.wss4j.common.crypto.PasswordEncryptor getPasswordEncryptor(SoapMessage soapMessage, org.apache.wss4j.stax.ext.WSSSecurityProperties securityProperties)
protected org.apache.wss4j.common.crypto.Crypto getEncryptionCrypto(Object e, SoapMessage message, org.apache.wss4j.stax.ext.WSSSecurityProperties securityProperties) throws org.apache.wss4j.common.ext.WSSecurityException
org.apache.wss4j.common.ext.WSSecurityExceptionprotected org.apache.wss4j.common.crypto.Crypto getSignatureCrypto(Object s, SoapMessage message, org.apache.wss4j.stax.ext.WSSSecurityProperties securityProperties) throws org.apache.wss4j.common.ext.WSSecurityException
org.apache.wss4j.common.ext.WSSecurityExceptionApache CXF