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:
org.apache.cxf.binding.soap.interceptor.SoapInterceptor,Interceptor<org.apache.cxf.binding.soap.SoapMessage>,PhaseInterceptor<org.apache.cxf.binding.soap.SoapMessage>
- Direct Known Subclasses:
PolicyBasedWSS4JStaxOutInterceptor
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionWSS4JStaxOutInterceptor(Map<String, Object> props) WSS4JStaxOutInterceptor(WSSSecurityProperties securityProperties) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidconfigureProperties(org.apache.cxf.binding.soap.SoapMessage msg, org.apache.xml.security.stax.ext.OutboundSecurityContext outboundSecurityContext, WSSSecurityProperties securityProperties) protected org.apache.xml.security.stax.securityEvent.SecurityEventListenerconfigureSecurityEventListener(org.apache.cxf.binding.soap.SoapMessage msg, WSSSecurityProperties securityProperties) final org.apache.cxf.ws.security.wss4j.WSS4JStaxOutInterceptor.WSS4JStaxOutInterceptorInternalvoidhandleMessage(org.apache.cxf.binding.soap.SoapMessage mc) Intercepts a message.protected voidhandleSecureMTOM(org.apache.cxf.binding.soap.SoapMessage mc, WSSSecurityProperties secProps) booleanvoidsetAllowMTOM(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 Details
-
OUTPUT_STREAM_HOLDER
-
-
Constructor Details
-
WSS4JStaxOutInterceptor
-
WSS4JStaxOutInterceptor
-
WSS4JStaxOutInterceptor
public WSS4JStaxOutInterceptor()
-
-
Method Details
-
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(org.apache.cxf.binding.soap.SoapMessage mc, WSSSecurityProperties secProps) -
handleMessage
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(org.apache.cxf.binding.soap.SoapMessage msg, WSSSecurityProperties securityProperties) throws WSSPolicyException - Throws:
WSSPolicyException
-
configureProperties
protected void configureProperties(org.apache.cxf.binding.soap.SoapMessage msg, org.apache.xml.security.stax.ext.OutboundSecurityContext outboundSecurityContext, WSSSecurityProperties securityProperties) throws WSSecurityException - Throws:
WSSecurityException
-
createEndingInterceptor
public final org.apache.cxf.ws.security.wss4j.WSS4JStaxOutInterceptor.WSS4JStaxOutInterceptorInternal createEndingInterceptor()
-