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:
org.opensaml.security.trust.TrustEngine<TokenType>
public class ChainingTrustEngine<TokenType> extends Object implements org.opensaml.security.trust.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.
-
-
Constructor Summary
Constructors Constructor Description ChainingTrustEngine(List<org.opensaml.security.trust.TrustEngine<? super TokenType>> chain)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<org.opensaml.security.trust.TrustEngine<? super TokenType>>getChain()Get the list of configured trust engines which constitute the trust evaluation chain.booleanvalidate(TokenType token, net.shibboleth.utilities.java.support.resolver.CriteriaSet trustBasisCriteria)
-
-
-
Method Detail
-
getChain
@Nonnull @NonnullElements @Unmodifiable @NotLive public List<org.opensaml.security.trust.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 net.shibboleth.utilities.java.support.resolver.CriteriaSet trustBasisCriteria) throws org.opensaml.security.SecurityException- Specified by:
validatein interfaceorg.opensaml.security.trust.TrustEngine<TokenType>- Throws:
org.opensaml.security.SecurityException
-
-