Class ChainingSignatureTrustEngine
java.lang.Object
org.opensaml.xmlsec.signature.support.impl.ChainingSignatureTrustEngine
- All Implemented Interfaces:
TrustEngine<Signature>,SignatureTrustEngine
Evaluate a signature in sequence using a chain of subordinate trust engines. If the signature may be established as
trusted by any of the subordinate engines, the token is considered trusted. Otherwise it is considered untrusted.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate List<SignatureTrustEngine>The chain of subordinate trust engines.private final org.slf4j.LoggerClass logger. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetChain()Get the list of configured trust engines which constitute the trust evaluation chain.booleanvalidate(byte[] signature, byte[] content, String algorithmURI, CriteriaSet trustBasisCriteria, Credential candidateCredential) booleanvalidate(Signature token, CriteriaSet trustBasisCriteria)
-
Field Details
-
log
@Nonnull private final org.slf4j.Logger logClass logger. -
engines
The chain of subordinate trust engines.
-
-
Constructor Details
-
ChainingSignatureTrustEngine
public ChainingSignatureTrustEngine(@Nonnull @ParameterName(name="chain") List<SignatureTrustEngine> 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
-
getKeyInfoResolver
- Specified by:
getKeyInfoResolverin interfaceSignatureTrustEngine
-