TokenType - the token type this trust engine evaluatespublic class ChainingTrustEngine<TokenType> extends java.lang.Object implements TrustEngine<TokenType>
| Modifier and Type | Field and Description |
|---|---|
private java.util.List<TrustEngine<? super TokenType>> |
engines
The chain of subordinate trust engines.
|
private org.slf4j.Logger |
log
Class logger.
|
| Constructor and Description |
|---|
ChainingTrustEngine(java.util.List<TrustEngine<? super TokenType>> chain)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.List<TrustEngine<? super TokenType>> |
getChain()
Get the list of configured trust engines which constitute the trust evaluation chain.
|
boolean |
validate(TokenType token,
net.shibboleth.utilities.java.support.resolver.CriteriaSet trustBasisCriteria)
Validates the token against trusted information obtained in an
implementation-specific manner.
|
@Nonnull private final org.slf4j.Logger log
@Nonnull @NonnullElements private java.util.List<TrustEngine<? super TokenType>> engines
public ChainingTrustEngine(@Nonnull
java.util.List<TrustEngine<? super TokenType>> chain)
chain - the list of trust engines in the chain@Nonnull @NonnullElements @Unmodifiable @NotLive public java.util.List<TrustEngine<? super TokenType>> getChain()
public boolean validate(@Nonnull
TokenType token,
@Nullable
net.shibboleth.utilities.java.support.resolver.CriteriaSet trustBasisCriteria)
throws SecurityException
validate in interface TrustEngine<TokenType>token - security token to validatetrustBasisCriteria - criteria used to describe and/or resolve the information
which serves as the basis for trust evaluationSecurityException - thrown if there is a problem validating the security token