Class TokenAsymmetricKeyTrustEngine
java.lang.Object
net.shibboleth.oidc.security.impl.BaseSignedJWTTrustEngine<Credential>
net.shibboleth.oidc.security.impl.TokenAsymmetricKeyTrustEngine
- All Implemented Interfaces:
TrustEngine<SignedJWT>
A
TrustEngine implementation for Signed JSON Web Tokens. The token derived public key is used as the trust
basis.- Since:
- 3.2.0
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedTokenAsymmetricKeyTrustEngine(JOSEObjectCredentialResolver joseObjectResolver) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionprotected booleandoValidate(SignedJWT signedJWT, CriteriaSet trustBasisCriteria) Validate the signed JWT using the supplied trust criteria.protected booleanevaluateTrust(Credential untrustedCredential, Credential trustBasis) Evaluate the untrusted KeyInfo-derived credential with respect to the specified trusted information.Methods inherited from class net.shibboleth.oidc.security.impl.BaseSignedJWTTrustEngine
checkParams, resolveTokenCredentials, validate, validate, verifySignature
-
Field Details
-
log
@Nonnull private final org.slf4j.Logger logClass logger.
-
-
Constructor Details
-
TokenAsymmetricKeyTrustEngine
protected TokenAsymmetricKeyTrustEngine(@Nonnull @ParameterName(name="JOSEObjectResolver") JOSEObjectCredentialResolver joseObjectResolver) Constructor.- Parameters:
joseObjectResolver- resolver of credentials from JOSEObject headers.
-
-
Method Details
-
evaluateTrust
protected boolean evaluateTrust(@Nonnull Credential untrustedCredential, @Nullable Credential trustBasis) throws SecurityException Description copied from class:BaseSignedJWTTrustEngineEvaluate the untrusted KeyInfo-derived credential with respect to the specified trusted information.- Specified by:
evaluateTrustin classBaseSignedJWTTrustEngine<Credential>- Parameters:
untrustedCredential- the untrusted credential being evaluatedtrustBasis- the information which serves as the basis for trust evaluation- Returns:
- true if the trust can be established for the untrusted credential, otherwise false
- Throws:
SecurityException- if an error occurs during trust processing