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.Get the KeyInfoCredentialResolver instance used to resolve (advisory) signing credential information from KeyInfo elements contained within a Signature element.booleanvalidate(byte[] signature, byte[] content, String algorithmURI, CriteriaSet trustBasisCriteria, Credential candidateCredential) Determines whether a raw signature over specified content is valid and signed by a trusted credential.booleanvalidate(Signature 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
-
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
Get the KeyInfoCredentialResolver instance used to resolve (advisory) signing credential information from KeyInfo elements contained within a Signature element. Note that credential(s) obtained via this resolver are not themselves trusted. They must be evaluated against the trusted credential information obtained from the trusted credential resolver.- Specified by:
getKeyInfoResolverin interfaceSignatureTrustEngine- Returns:
- a KeyInfoCredentialResolver instance
-