Package 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
FieldsModifier and TypeFieldDescriptionstatic final StringA concrete PolicyVerifier can indicate to the runtime the ID of the alternative that satisfied the incoming request's policy. -
Method Summary
Modifier and TypeMethodDescriptionvoidverifyPolicy(SecurityPolicy recvdPolicy, SecurityPolicy configPolicy)
-
Field Details
-
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:
-
-
Method Details
-
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:
PolicyViolationException- when policy inferred from incoming message does not match with what is configured.
-