Interface PolicyVerifier

    • Field Detail

      • POLICY_ALTERNATIVE_ID

        static final String POLICY_ALTERNATIVE_ID
        A concrete PolicyVerifier can indicate to the runtime the ID of the alternative that satisfied the incoming request's policy. The ID is then used by the runtime to get the correct response policy for securing the response messages.
        See Also:
        Constant Field Values
    • Method Detail

      • verifyPolicy

        void verifyPolicy​(SecurityPolicy recvdPolicy,
                          SecurityPolicy configPolicy)
                   throws PolicyViolationException
        Parameters:
        configPolicy - Policy configured for the incoming message, can be a single MessagePolicy or PolicyAlternatives.
        recvdPolicy - policy inferred from the incoming message.
        Throws:
        com.sun.xml.wss.PolicyViolationException - when policy inferred from incoming message does not match with what is configured.
        PolicyViolationException