Class UsernameTokenPolicyValidator
java.lang.Object
org.apache.cxf.ws.security.wss4j.policyvalidators.AbstractSecurityPolicyValidator
org.apache.cxf.ws.security.wss4j.policyvalidators.UsernameTokenPolicyValidator
- All Implemented Interfaces:
SecurityPolicyValidator
Validate a UsernameToken policy.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancanValidatePolicy(org.apache.cxf.ws.policy.AssertionInfo assertionInfo) Return true if this SecurityPolicyValidator implementation is capable of validating a policy defined by the AssertionInfo parameterbooleancheckTokens(org.apache.wss4j.policy.model.UsernameToken usernameTokenPolicy, org.apache.cxf.ws.policy.AssertionInfo ai, List<org.apache.wss4j.dom.engine.WSSecurityEngineResult> utResults) All UsernameTokens must conform to the policyvoidvalidatePolicies(PolicyValidatorParameters parameters, Collection<org.apache.cxf.ws.policy.AssertionInfo> ais) Validate policies.Methods inherited from class org.apache.cxf.ws.security.wss4j.policyvalidators.AbstractSecurityPolicyValidator
isTokenRequired
-
Constructor Details
-
UsernameTokenPolicyValidator
public UsernameTokenPolicyValidator()
-
-
Method Details
-
canValidatePolicy
public boolean canValidatePolicy(org.apache.cxf.ws.policy.AssertionInfo assertionInfo) Return true if this SecurityPolicyValidator implementation is capable of validating a policy defined by the AssertionInfo parameter -
validatePolicies
public void validatePolicies(PolicyValidatorParameters parameters, Collection<org.apache.cxf.ws.policy.AssertionInfo> ais) Validate policies. W -
checkTokens
public boolean checkTokens(org.apache.wss4j.policy.model.UsernameToken usernameTokenPolicy, org.apache.cxf.ws.policy.AssertionInfo ai, List<org.apache.wss4j.dom.engine.WSSecurityEngineResult> utResults) All UsernameTokens must conform to the policy
-