Package org.opensaml.security.trust.impl
Class ChainingTrustEngine<TokenType>
- java.lang.Object
-
- org.opensaml.security.trust.impl.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
Fields Modifier and Type Field Description private List<TrustEngine<? super TokenType>>enginesThe chain of subordinate trust engines.private org.slf4j.LoggerlogClass logger.
-
Constructor Summary
Constructors Constructor Description ChainingTrustEngine(List<TrustEngine<? super TokenType>> chain)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<TrustEngine<? super TokenType>>getChain()Get the list of configured trust engines which constitute the trust evaluation chain.booleanvalidate(TokenType token, CriteriaSet trustBasisCriteria)
-
-
-
Field Detail
-
log
@Nonnull private final org.slf4j.Logger log
Class logger.
-
engines
@Nonnull @NonnullElements private List<TrustEngine<? super TokenType>> engines
The chain of subordinate trust engines.
-
-
Constructor Detail
-
ChainingTrustEngine
public ChainingTrustEngine(@Nonnull @NonnullElements @ParameterName(name="chain") List<TrustEngine<? super TokenType>> chain)
Constructor.- Parameters:
chain- the list of trust engines in the chain
-
-
Method Detail
-
getChain
@Nonnull @NonnullElements @Unmodifiable @NotLive public List<TrustEngine<? super 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(@Nonnull TokenType token, @Nullable CriteriaSet trustBasisCriteria) throws SecurityException- Specified by:
validatein interfaceTrustEngine<TokenType>- Throws:
SecurityException
-
-