Package 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:
SoapInterceptor,Interceptor<SoapMessage>,PhaseInterceptor<SoapMessage>
- Direct Known Subclasses:
PolicyBasedWSS4JStaxOutInterceptor
public class WSS4JStaxOutInterceptor extends AbstractWSS4JStaxInterceptor
-
-
Field Summary
Fields Modifier and Type Field Description static StringOUTPUT_STREAM_HOLDER
-
Constructor Summary
Constructors Constructor Description WSS4JStaxOutInterceptor()WSS4JStaxOutInterceptor(Map<String,Object> props)WSS4JStaxOutInterceptor(org.apache.wss4j.stax.ext.WSSSecurityProperties securityProperties)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidconfigureProperties(SoapMessage msg, org.apache.xml.security.stax.ext.OutboundSecurityContext outboundSecurityContext, org.apache.wss4j.stax.ext.WSSSecurityProperties securityProperties)protected org.apache.xml.security.stax.securityEvent.SecurityEventListenerconfigureSecurityEventListener(SoapMessage msg, org.apache.wss4j.stax.ext.WSSSecurityProperties securityProperties)org.apache.cxf.ws.security.wss4j.WSS4JStaxOutInterceptor.WSS4JStaxOutInterceptorInternalcreateEndingInterceptor()voidhandleMessage(SoapMessage mc)Intercepts a message.protected voidhandleSecureMTOM(SoapMessage mc, org.apache.wss4j.stax.ext.WSSSecurityProperties secProps)booleanisAllowMTOM()voidsetAllowMTOM(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, getId, getOption, getPassword, getPasswordEncryptor, getPhase, getProperties, getProperty, getRoles, getSignatureCrypto, getUnderstoodHeaders, handleFault, isRequestor, loadCrypto, loadCryptoFromPropertiesFile, postHandleMessage, setId, setPassword, setPhase, setProperty, translateProperties
-
-
-
-
Field Detail
-
OUTPUT_STREAM_HOLDER
public static final String OUTPUT_STREAM_HOLDER
-
-
Method Detail
-
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:
allowMTOM-
-
handleSecureMTOM
protected void handleSecureMTOM(SoapMessage mc, org.apache.wss4j.stax.ext.WSSSecurityProperties secProps)
-
handleMessage
public void handleMessage(SoapMessage mc) throws Fault
Description copied from interface:InterceptorIntercepts a message. Interceptors should NOT invoke handleMessage or handleFault on the next interceptor - the interceptor chain will take care of this.- Throws:
Fault
-
configureSecurityEventListener
protected org.apache.xml.security.stax.securityEvent.SecurityEventListener configureSecurityEventListener(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(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()
-
-