Class SignatureFilter


  • public class SignatureFilter
    extends Object
    Performs signature or verifies signature Message ANNOTATION is performed as follows: if (complete policy resolution should happen) make DynamicPolicyCallback else // assumes feature binding component is statically specified - // including targets and canonicalization algorithm if (X509CertificateBinding) resolve certificate - make SignatureKeyCallback if (X509CertificateBinding has associated SymmetricKeyBinding) resolve symmetric key - make SymmetricKeyCallback else if (X509CertificateBinding has no associated bindings || X509CertificateBinding has associated PrivateKeyBinding) create PrivateKeyBinding if req'd with private key associated with the certificate else throw Exception else throw Exception call SignatureProcessor Message (signature verification) VALIDATION is performed as follows: if (ADHOC processing mode) if (complete policy resolution should happen) make DynamicPolicyCallback call VerificationProcessor else if (POSTHOC or DEFAULT mode) call VerificationProcessor
    • Constructor Detail

      • SignatureFilter

        public SignatureFilter()
    • Method Detail

      • process

        public static void process​(FilterProcessingContext context)
                            throws com.sun.xml.wss.XWSSecurityException
        creates the suitable key for each binding type and sets the binding in the context
        Parameters:
        context - FilterProcessingContext
        Throws:
        com.sun.xml.wss.XWSSecurityException