org.opensaml.xml.security.trust
Class ChainingTrustEngine<TokenType>

java.lang.Object
  extended by org.opensaml.xml.security.trust.ChainingTrustEngine<TokenType>
Type Parameters:
TokenType - the token type this trust engine evaluates
All Implemented Interfaces:
TrustEngine<TokenType>

public class ChainingTrustEngine<TokenType>
extends Object
implements TrustEngine<TokenType>

Evaluate a token in sequence using a chain of subordinate trust engines. If the token may be established as trusted by any of the subordinate engines, the token is considered trusted. Otherwise it is considered untrusted.


Field Summary
private  List<TrustEngine<TokenType>> engines
          The chain of subordinate trust engines.
private  Logger log
          Class logger.
 
Constructor Summary
ChainingTrustEngine()
          Constructor.
 
Method Summary
 List<TrustEngine<TokenType>> getChain()
          Get the list of configured trust engines which constitute the trust evaluation chain.
 boolean validate(TokenType token, CriteriaSet trustBasisCriteria)
          Validates the token against trusted information obtained in an implementation-specific manner.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

private final Logger log
Class logger.


engines

private List<TrustEngine<TokenType>> engines
The chain of subordinate trust engines.

Constructor Detail

ChainingTrustEngine

public ChainingTrustEngine()
Constructor.

Method Detail

getChain

public List<TrustEngine<TokenType>> getChain()
Get the list of configured trust engines which constitute the trust evaluation chain.

Returns:
the modifiable list of trust engines in the chain

validate

public boolean validate(TokenType token,
                        CriteriaSet trustBasisCriteria)
                 throws SecurityException
Validates the token against trusted information obtained in an implementation-specific manner.

Specified by:
validate in interface TrustEngine<TokenType>
Parameters:
token - security token to validate
trustBasisCriteria - criteria used to describe and/or resolve the information which serves as the basis for trust evaluation
Returns:
true if the token is trusted and valid, false if not
Throws:
SecurityException - thrown if there is a problem validating the security token


Copyright © 1999-2013. All Rights Reserved.