org.apache.cxf.ws.security.wss4j
Class WSS4JStaxOutInterceptor
java.lang.Object
org.apache.cxf.ws.security.wss4j.AbstractWSS4JStaxInterceptor
org.apache.cxf.ws.security.wss4j.WSS4JStaxOutInterceptor
- 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:
- PolicyBasedWSS4JStaxOutInterceptor
public class WSS4JStaxOutInterceptor
- extends AbstractWSS4JStaxInterceptor
|
Method Summary |
protected void |
configureProperties(org.apache.cxf.binding.soap.SoapMessage msg,
org.apache.xml.security.stax.ext.OutboundSecurityContext outboundSecurityContext,
org.apache.wss4j.stax.ext.WSSSecurityProperties securityProperties)
|
protected org.apache.xml.security.stax.securityEvent.SecurityEventListener |
configureSecurityEventListener(org.apache.cxf.binding.soap.SoapMessage msg,
org.apache.wss4j.stax.ext.WSSSecurityProperties securityProperties)
|
org.apache.cxf.ws.security.wss4j.WSS4JStaxOutInterceptor.WSS4JStaxOutInterceptorInternal |
createEndingInterceptor()
|
Object |
getProperty(Object msgContext,
String key)
|
void |
handleMessage(org.apache.cxf.binding.soap.SoapMessage mc)
|
protected void |
handleSecureMTOM(org.apache.cxf.binding.soap.SoapMessage mc,
org.apache.wss4j.stax.ext.WSSSecurityProperties secProps)
|
boolean |
isAllowMTOM()
|
void |
setAllowMTOM(boolean allowMTOM)
Enable or disable mtom with WS-Security. |
| Methods inherited from class org.apache.cxf.ws.security.wss4j.AbstractWSS4JStaxInterceptor |
configureCallbackHandler, createSecurityProperties, getAdditionalInterceptors, getAfter, getBefore, getEncryptionCrypto, getFirstAssertionByLocalname, getId, getOption, getPassword, getPasswordEncryptor, getPhase, getProperties, getRoles, getSignatureCrypto, getUnderstoodHeaders, handleFault, isRequestor, loadCrypto, loadCryptoFromPropertiesFile, postHandleMessage, setId, setPassword, setPhase, setProperty, translateProperties |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OUTPUT_STREAM_HOLDER
public static final String OUTPUT_STREAM_HOLDER
WSS4JStaxOutInterceptor
public WSS4JStaxOutInterceptor(org.apache.wss4j.stax.ext.WSSSecurityProperties securityProperties)
WSS4JStaxOutInterceptor
public WSS4JStaxOutInterceptor(Map<String,Object> props)
WSS4JStaxOutInterceptor
public WSS4JStaxOutInterceptor()
isAllowMTOM
public boolean isAllowMTOM()
setAllowMTOM
public void setAllowMTOM(boolean allowMTOM)
- Enable or disable mtom with WS-Security. MTOM is disabled if we are signing or
encrypting the message Body, as otherwise attachments would not get encrypted
or be part of the signature.
- Parameters:
mtomEnabled -
getProperty
public Object getProperty(Object msgContext,
String key)
- Overrides:
getProperty in class AbstractWSS4JStaxInterceptor
handleSecureMTOM
protected void handleSecureMTOM(org.apache.cxf.binding.soap.SoapMessage mc,
org.apache.wss4j.stax.ext.WSSSecurityProperties secProps)
handleMessage
public void handleMessage(org.apache.cxf.binding.soap.SoapMessage mc)
throws org.apache.cxf.interceptor.Fault
- Throws:
org.apache.cxf.interceptor.Fault
configureSecurityEventListener
protected org.apache.xml.security.stax.securityEvent.SecurityEventListener configureSecurityEventListener(org.apache.cxf.binding.soap.SoapMessage msg,
org.apache.wss4j.stax.ext.WSSSecurityProperties securityProperties)
throws org.apache.wss4j.common.WSSPolicyException
- Throws:
org.apache.wss4j.common.WSSPolicyException
configureProperties
protected void configureProperties(org.apache.cxf.binding.soap.SoapMessage msg,
org.apache.xml.security.stax.ext.OutboundSecurityContext outboundSecurityContext,
org.apache.wss4j.stax.ext.WSSSecurityProperties securityProperties)
throws org.apache.wss4j.common.ext.WSSecurityException
- Throws:
org.apache.wss4j.common.ext.WSSecurityException
createEndingInterceptor
public final org.apache.cxf.ws.security.wss4j.WSS4JStaxOutInterceptor.WSS4JStaxOutInterceptorInternal createEndingInterceptor()
Apache CXF