org.apache.cxf.ws.security.wss4j.policyvalidators
Class UsernameTokenPolicyValidator
java.lang.Object
org.apache.cxf.ws.security.wss4j.policyvalidators.AbstractTokenPolicyValidator
org.apache.cxf.ws.security.wss4j.policyvalidators.UsernameTokenPolicyValidator
- All Implemented Interfaces:
- TokenPolicyValidator
public class UsernameTokenPolicyValidator
- extends AbstractTokenPolicyValidator
- implements TokenPolicyValidator
Validate a UsernameToken policy.
Method Summary |
boolean |
checkTokens(org.apache.wss4j.policy.model.UsernameToken usernameTokenPolicy,
AssertionInfo ai,
List<org.apache.wss4j.dom.WSSecurityEngineResult> utResults)
All UsernameTokens must conform to the policy |
boolean |
validatePolicy(AssertionInfoMap aim,
Message message,
Element soapBody,
List<org.apache.wss4j.dom.WSSecurityEngineResult> results,
List<org.apache.wss4j.dom.WSSecurityEngineResult> signedResults)
Validate a particular policy from the AssertionInfoMap argument. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UsernameTokenPolicyValidator
public UsernameTokenPolicyValidator()
validatePolicy
public boolean validatePolicy(AssertionInfoMap aim,
Message message,
Element soapBody,
List<org.apache.wss4j.dom.WSSecurityEngineResult> results,
List<org.apache.wss4j.dom.WSSecurityEngineResult> signedResults)
- Description copied from interface:
TokenPolicyValidator
- Validate a particular policy from the AssertionInfoMap argument. Return true if the policy is valid.
- Specified by:
validatePolicy
in interface TokenPolicyValidator
checkTokens
public boolean checkTokens(org.apache.wss4j.policy.model.UsernameToken usernameTokenPolicy,
AssertionInfo ai,
List<org.apache.wss4j.dom.WSSecurityEngineResult> utResults)
- All UsernameTokens must conform to the policy
Apache CXF