Class PolicyBasedWSS4JStaxInInterceptor

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>

public class PolicyBasedWSS4JStaxInInterceptor extends WSS4JStaxInInterceptor
  • Constructor Details

    • PolicyBasedWSS4JStaxInInterceptor

      public PolicyBasedWSS4JStaxInInterceptor()
  • Method Details

    • handleMessage

      public void handleMessage(org.apache.cxf.binding.soap.SoapMessage msg) throws org.apache.cxf.interceptor.Fault
      Specified by:
      handleMessage in interface org.apache.cxf.interceptor.Interceptor<org.apache.cxf.binding.soap.SoapMessage>
      Overrides:
      handleMessage in class WSS4JStaxInInterceptor
      Throws:
      org.apache.cxf.interceptor.Fault
    • createSecurityProperties

      protected org.apache.wss4j.stax.ext.WSSSecurityProperties createSecurityProperties()
      Overrides:
      createSecurityProperties in class AbstractWSS4JStaxInterceptor
    • configureProperties

      protected void configureProperties(org.apache.cxf.binding.soap.SoapMessage msg, org.apache.wss4j.stax.ext.WSSSecurityProperties securityProperties) throws org.apache.xml.security.exceptions.XMLSecurityException
      Overrides:
      configureProperties in class WSS4JStaxInInterceptor
      Throws:
      org.apache.xml.security.exceptions.XMLSecurityException
    • isNonceCacheRequired

      protected boolean isNonceCacheRequired(org.apache.cxf.binding.soap.SoapMessage msg, org.apache.wss4j.stax.ext.WSSSecurityProperties securityProperties)
      Is a Nonce Cache required, i.e. are we expecting a UsernameToken
      Overrides:
      isNonceCacheRequired in class WSS4JStaxInInterceptor
    • isTimestampCacheRequired

      protected boolean isTimestampCacheRequired(org.apache.cxf.binding.soap.SoapMessage msg, org.apache.wss4j.stax.ext.WSSSecurityProperties securityProperties)
      Is a Timestamp cache required, i.e. are we expecting a Timestamp
      Overrides:
      isTimestampCacheRequired in class WSS4JStaxInInterceptor
    • isSamlCacheRequired

      protected boolean isSamlCacheRequired(org.apache.cxf.binding.soap.SoapMessage msg, org.apache.wss4j.stax.ext.WSSSecurityProperties securityProperties)
      Is a SAML Cache required, i.e. are we expecting a SAML Token
      Overrides:
      isSamlCacheRequired in class WSS4JStaxInInterceptor
    • configureSecurityEventListeners

      protected List<org.apache.xml.security.stax.securityEvent.SecurityEventListener> configureSecurityEventListeners(org.apache.cxf.binding.soap.SoapMessage msg, org.apache.wss4j.stax.ext.WSSSecurityProperties securityProperties) throws org.apache.wss4j.common.WSSPolicyException
      Overrides:
      configureSecurityEventListeners in class WSS4JStaxInInterceptor
      Throws:
      org.apache.wss4j.common.WSSPolicyException