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>
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
Modifier and TypeFieldDescriptionprivate List<TrustEngine<? super TokenType>>
The chain of subordinate trust engines.private final org.slf4j.Logger
Class logger. -
Constructor Summary
ConstructorDescriptionChainingTrustEngine
(List<TrustEngine<? super TokenType>> chain) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionList<TrustEngine<? super 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.
-
Field Details
-
log
@Nonnull private final org.slf4j.Logger logClass logger. -
engines
The chain of subordinate trust engines.
-
-
Constructor Details
-
ChainingTrustEngine
public ChainingTrustEngine(@Nonnull @ParameterName(name="chain") List<TrustEngine<? super TokenType>> chain) Constructor.- Parameters:
chain
- the list of trust engines in the chain
-
-
Method Details
-
getChain
Get the list of configured trust engines which constitute the trust evaluation chain.- Returns:
- the modifiable list of trust engines in the chain
-