Class AbstractWSS4JStaxInterceptor

    • Constructor Detail

      • AbstractWSS4JStaxInterceptor

        public AbstractWSS4JStaxInterceptor​(org.apache.wss4j.stax.ext.WSSSecurityProperties securityProperties)
      • AbstractWSS4JStaxInterceptor

        public AbstractWSS4JStaxInterceptor​(Map<String,​Object> properties)
      • AbstractWSS4JStaxInterceptor

        public AbstractWSS4JStaxInterceptor()
    • Method Detail

      • createSecurityProperties

        protected org.apache.wss4j.stax.ext.WSSSecurityProperties createSecurityProperties()
      • translateProperties

        protected void translateProperties​(SoapMessage msg,
                                           org.apache.wss4j.stax.ext.WSSSecurityProperties securityProperties)
      • configureCallbackHandler

        protected void configureCallbackHandler​(SoapMessage soapMessage,
                                                org.apache.wss4j.stax.ext.WSSSecurityProperties securityProperties)
                                         throws org.apache.wss4j.common.ext.WSSecurityException
        Throws:
        org.apache.wss4j.common.ext.WSSecurityException
      • getPassword

        protected String getPassword​(Object msgContext)
      • handleFault

        public void handleFault​(SoapMessage message)
        Description copied from interface: Interceptor
        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.
        Specified by:
        handleFault in interface Interceptor<SoapMessage>
      • setPhase

        public void setPhase​(String phase)
      • setPassword

        public void setPassword​(Object msgContext,
                                String password)
      • setProperty

        public void setProperty​(Object msgContext,
                                String key,
                                Object value)
      • setId

        public void setId​(String id)
      • getAfter

        public Set<String> getAfter()
        Description copied from interface: PhaseInterceptor
        Returns a set containing the IDs of the interceptors that should be executed before this interceptor. This interceptor will be placed in the chain after the interceptors in the set.
        Specified by:
        getAfter in interface PhaseInterceptor<SoapMessage>
        Returns:
        the IDs of the interceptors
      • getBefore

        public Set<String> getBefore()
        Description copied from interface: PhaseInterceptor
        Returns a set containing the IDs of the interceptors that should be executed after this interceptor. This interceptor will be placed in the inteceptor chain before the interceptors in the set.
        Specified by:
        getBefore in interface PhaseInterceptor<SoapMessage>
        Returns:
        the ids of the interceptors
      • isRequestor

        protected boolean isRequestor​(SoapMessage message)
      • loadCrypto

        protected org.apache.wss4j.common.crypto.Crypto loadCrypto​(SoapMessage soapMessage,
                                                                   String cryptoPropertyFile,
                                                                   String cryptoPropertyRefId,
                                                                   org.apache.wss4j.stax.ext.WSSSecurityProperties securityProperties)
                                                            throws org.apache.wss4j.common.ext.WSSecurityException
        Load a Crypto instance. Firstly, it tries to use the cryptoPropertyRefId tag to retrieve a Crypto object via a custom reference Id. Failing this, it tries to load the crypto instance via the cryptoPropertyFile tag.
        Throws:
        org.apache.wss4j.common.ext.WSSecurityException
      • loadCryptoFromPropertiesFile

        protected org.apache.wss4j.common.crypto.Crypto loadCryptoFromPropertiesFile​(SoapMessage soapMessage,
                                                                                     String propFilename,
                                                                                     org.apache.wss4j.stax.ext.WSSSecurityProperties securityProperties)
                                                                              throws org.apache.wss4j.common.ext.WSSecurityException
        Throws:
        org.apache.wss4j.common.ext.WSSecurityException
      • getPasswordEncryptor

        protected org.apache.wss4j.common.crypto.PasswordEncryptor getPasswordEncryptor​(SoapMessage soapMessage,
                                                                                        org.apache.wss4j.stax.ext.WSSSecurityProperties securityProperties)
      • getEncryptionCrypto

        protected org.apache.wss4j.common.crypto.Crypto getEncryptionCrypto​(Object e,
                                                                            SoapMessage message,
                                                                            org.apache.wss4j.stax.ext.WSSSecurityProperties securityProperties)
                                                                     throws org.apache.wss4j.common.ext.WSSecurityException
        Throws:
        org.apache.wss4j.common.ext.WSSecurityException
      • getSignatureCrypto

        protected org.apache.wss4j.common.crypto.Crypto getSignatureCrypto​(Object s,
                                                                           SoapMessage message,
                                                                           org.apache.wss4j.stax.ext.WSSSecurityProperties securityProperties)
                                                                    throws org.apache.wss4j.common.ext.WSSecurityException
        Throws:
        org.apache.wss4j.common.ext.WSSecurityException