public abstract class AbstractWSS4JStaxInterceptor extends Object implements org.apache.cxf.binding.soap.interceptor.SoapInterceptor, PhaseInterceptor<org.apache.cxf.binding.soap.SoapMessage>
| Constructor and Description |
|---|
AbstractWSS4JStaxInterceptor() |
AbstractWSS4JStaxInterceptor(Map<String,Object> properties) |
AbstractWSS4JStaxInterceptor(WSSSecurityProperties securityProperties) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
configureCallbackHandler(org.apache.cxf.binding.soap.SoapMessage soapMessage,
WSSSecurityProperties securityProperties) |
protected 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 Crypto |
getEncryptionCrypto(Object e,
org.apache.cxf.binding.soap.SoapMessage message,
WSSSecurityProperties securityProperties) |
String |
getId()
Returns the ID of this interceptor.
|
Object |
getOption(String key) |
String |
getPassword(Object msgContext) |
protected PasswordEncryptor |
getPasswordEncryptor(org.apache.cxf.binding.soap.SoapMessage soapMessage,
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 Crypto |
getSignatureCrypto(Object s,
org.apache.cxf.binding.soap.SoapMessage message,
WSSSecurityProperties securityProperties) |
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 |
loadCrypto(org.apache.cxf.binding.soap.SoapMessage soapMessage,
String cryptoPropertyFile,
String cryptoPropertyRefId,
WSSSecurityProperties securityProperties)
Load a Crypto instance.
|
protected Crypto |
loadCryptoFromPropertiesFile(org.apache.cxf.binding.soap.SoapMessage soapMessage,
String propFilename,
WSSSecurityProperties securityProperties) |
void |
postHandleMessage(org.apache.cxf.binding.soap.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(org.apache.cxf.binding.soap.SoapMessage msg,
WSSSecurityProperties securityProperties) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waithandleMessagepublic AbstractWSS4JStaxInterceptor(WSSSecurityProperties securityProperties)
public AbstractWSS4JStaxInterceptor()
protected WSSSecurityProperties createSecurityProperties()
protected void translateProperties(org.apache.cxf.binding.soap.SoapMessage msg,
WSSSecurityProperties securityProperties)
protected void configureCallbackHandler(org.apache.cxf.binding.soap.SoapMessage soapMessage,
WSSSecurityProperties securityProperties)
throws WSSecurityException
WSSecurityExceptionpublic Set<URI> getRoles()
getRoles in interface org.apache.cxf.binding.soap.interceptor.SoapInterceptorpublic void handleFault(org.apache.cxf.binding.soap.SoapMessage message)
InterceptorhandleFault in interface Interceptor<org.apache.cxf.binding.soap.SoapMessage>public void postHandleMessage(org.apache.cxf.binding.soap.SoapMessage message)
throws Fault
Faultpublic Collection<PhaseInterceptor<? extends Message>> getAdditionalInterceptors()
PhaseInterceptorgetAdditionalInterceptors in interface PhaseInterceptor<org.apache.cxf.binding.soap.SoapMessage>public String getPhase()
PhaseInterceptorgetPhase in interface PhaseInterceptor<org.apache.cxf.binding.soap.SoapMessage>public void setPhase(String phase)
public String getId()
PhaseInterceptorgetId 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.SoapInterceptorpublic Set<String> getAfter()
PhaseInterceptorgetAfter in interface PhaseInterceptor<org.apache.cxf.binding.soap.SoapMessage>public Set<String> getBefore()
PhaseInterceptorgetBefore in interface PhaseInterceptor<org.apache.cxf.binding.soap.SoapMessage>protected boolean isRequestor(org.apache.cxf.binding.soap.SoapMessage message)
protected Crypto loadCrypto(org.apache.cxf.binding.soap.SoapMessage soapMessage, String cryptoPropertyFile, String cryptoPropertyRefId, WSSSecurityProperties securityProperties) throws WSSecurityException
WSSecurityExceptionprotected Crypto loadCryptoFromPropertiesFile(org.apache.cxf.binding.soap.SoapMessage soapMessage, String propFilename, WSSSecurityProperties securityProperties) throws WSSecurityException
WSSecurityExceptionprotected PasswordEncryptor getPasswordEncryptor(org.apache.cxf.binding.soap.SoapMessage soapMessage, WSSSecurityProperties securityProperties)
protected Crypto getEncryptionCrypto(Object e, org.apache.cxf.binding.soap.SoapMessage message, WSSSecurityProperties securityProperties) throws WSSecurityException
WSSecurityExceptionprotected Crypto getSignatureCrypto(Object s, org.apache.cxf.binding.soap.SoapMessage message, WSSSecurityProperties securityProperties) throws WSSecurityException
WSSecurityExceptionCopyright © 2018 JBoss by Red Hat. All rights reserved.