Class FilterProcessingContext

    • Field Detail

      • ADHOC

        public static final int ADHOC
        Processing modes indicate if policy resolution happened that can be applied on the message. ADHOC indicates that policy is available and its elements are applied to the message as-is, with specific handling for secondary policies. POSTHOC indicates that the header be processed as-is, without assuming a security policy. In such cases, security policy inferred from the message is validated post-hoc with one that is resolved later. DEFAULT indicates that no security policy is available for processing and the header is processed as-is, with specific handling for secondary header elements. WSDL_POLICY indicates a policy is to obtained from WSDL, but is is currently not known due to Encrypted Body
        See Also:
        Constant Field Values
    • Constructor Detail

      • FilterProcessingContext

        public FilterProcessingContext()
      • FilterProcessingContext

        public FilterProcessingContext​(int filterMode,
                                       String messageIdentifier,
                                       SecurityPolicy securityPolicy,
                                       jakarta.xml.soap.SOAPMessage message)
                                throws XWSSecurityException
        Parameters:
        filterMode - boolean
        messageIdentifier - String
        securityPolicy - SecurityPolicy
        message - SOAPMessage
        Throws:
        XWSSecurityException
    • Method Detail

      • setPVE

        public void setPVE​(Throwable exception)
        Parameters:
        exception - Throwable representing exception for policy violation
      • getPVE

        public Throwable getPVE()
        Returns:
        _policyViolation
      • setMode

        public void setMode​(int mode)
        Parameters:
        mode - set filter processing mode
      • getMode

        public int getMode()
        Returns:
        mode
      • enableDynamicPolicyCallback

        public void enableDynamicPolicyCallback​(boolean enable)
        Parameters:
        enable - boolean
      • makeDynamicPolicyCallback

        public boolean makeDynamicPolicyCallback()
        Returns:
        enableDynamicPolicyCallback
      • isPrimaryPolicyViolation

        public void isPrimaryPolicyViolation​(boolean assrt)
        Parameters:
        assrt -
      • isPrimaryPolicyViolation

        public boolean isPrimaryPolicyViolation()
        Returns:
        primaryPolicyViolation
      • isOptionalPolicyViolation

        public void isOptionalPolicyViolation​(boolean assrt)
        Parameters:
        assrt -
      • isOptionalPolicyViolation

        public boolean isOptionalPolicyViolation()
        Returns:
        optionalPolicyViolation
      • getTokenCache

        public HashMap getTokenCache()
        return the token cache.
      • getEncryptedKeyCache

        public HashMap getEncryptedKeyCache()
        return the encryptedKey Cache
      • getInsertedX509Cache

        public HashMap getInsertedX509Cache()
      • timestampExported

        public void timestampExported​(boolean flag)
      • timestampExported

        public boolean timestampExported()
      • getElementCache

        public HashMap getElementCache()
      • getSTRTransformCache

        public HashMap getSTRTransformCache()
      • setSymmetricKeyBinding

        public void setSymmetricKeyBinding​(SymmetricKeyBinding symmetricKeyBinding)
      • setDataEncryptionAlgorithm

        public void setDataEncryptionAlgorithm​(String alg)
      • getDataEncryptionAlgorithm

        public String getDataEncryptionAlgorithm()
      • getInferredPolicy

        public WSSPolicy getInferredPolicy()
      • setInferredPolicy

        public void setInferredPolicy​(WSSPolicy policy)
      • getDigestValue

        public byte[] getDigestValue()
      • setDigestValue

        public void setDigestValue​(byte[] digestValue)
      • getCanonicalizedData

        public byte[] getCanonicalizedData()
      • setCanonicalizedData

        public void setCanonicalizedData​(byte[] canonicalizedData)
      • setCurrentSecret

        public void setCurrentSecret​(Key secret)
      • getCurrentSecret

        public SecretKey getCurrentSecret()
      • getCurrentRefList

        public Node getCurrentRefList()
      • setCurrentReferenceList

        public void setCurrentReferenceList​(Node blk)