com.sun.xml.wss.impl.policy.spi
Interface PolicyVerifier

All Known Implementing Classes:
EncryptionPolicyVerifier, MessagePolicyVerifier, PolicyAlternativesVerifier, SignaturePolicyVerifier

public interface PolicyVerifier

This is an internal interface not exposed to developer.

Author:
K.Venugopal@sun.com

Field Summary
static String POLICY_ALTERNATIVE_ID
          A concrete PolicyVerifier can indicate to the runtime the ID of the alternative that satisfied the incoming request's policy.
 
Method Summary
 void verifyPolicy(SecurityPolicy recvdPolicy, SecurityPolicy configPolicy)
           
 

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


Copyright © 2005-2015 Oracle Corporation. All Rights Reserved.