Apache CXF API

org.apache.cxf.ws.security.wss4j.policyvalidators
Class AbstractTokenPolicyValidator

java.lang.Object
  extended by org.apache.cxf.ws.security.wss4j.policyvalidators.AbstractTokenPolicyValidator
Direct Known Subclasses:
AbstractSamlPolicyValidator, AbstractSupportingTokenPolicyValidator, AlgorithmSuitePolicyValidator, KerberosTokenPolicyValidator, LayoutPolicyValidator, SecurityContextTokenPolicyValidator, UsernameTokenPolicyValidator, WSS11PolicyValidator, X509TokenPolicyValidator

public abstract class AbstractTokenPolicyValidator
extends Object

Some abstract functionality for validating a Security Token.


Constructor Summary
AbstractTokenPolicyValidator()
           
 
Method Summary
protected  boolean assertPolicy(AssertionInfoMap aim, QName name)
           
protected  boolean assertPolicy(AssertionInfoMap aim, String localname)
           
protected  Collection<AssertionInfo> getAllAssertionsByLocalname(AssertionInfoMap aim, String localname)
           
protected  boolean isTokenRequired(org.apache.wss4j.policy.model.AbstractToken token, Message message)
          Check to see if a token is required or not.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractTokenPolicyValidator

public AbstractTokenPolicyValidator()
Method Detail

isTokenRequired

protected boolean isTokenRequired(org.apache.wss4j.policy.model.AbstractToken token,
                                  Message message)
Check to see if a token is required or not.

Parameters:
token - the token
message - The message
Returns:
true if the token is required

assertPolicy

protected boolean assertPolicy(AssertionInfoMap aim,
                               QName name)

assertPolicy

protected boolean assertPolicy(AssertionInfoMap aim,
                               String localname)

getAllAssertionsByLocalname

protected Collection<AssertionInfo> getAllAssertionsByLocalname(AssertionInfoMap aim,
                                                                String localname)

Apache CXF API

Apache CXF