@Singleton public class DefaultOpenIdTokenResponseValidator extends java.lang.Object implements OpenIdTokenResponseValidator
OpenIdTokenResponseValidator
.Constructor and Description |
---|
DefaultOpenIdTokenResponseValidator(java.util.Collection<OpenIdClaimsValidator> idTokenValidators,
java.util.Collection<GenericJwtClaimsValidator> genericJwtClaimsValidators,
NonceClaimValidator nonceClaimValidator,
JwkValidator jwkValidator) |
Modifier and Type | Method and Description |
---|---|
java.util.Optional<com.nimbusds.jwt.JWT> |
validate(OauthClientConfiguration clientConfiguration,
OpenIdProviderMetadata openIdProviderMetadata,
OpenIdTokenResponse openIdTokenResponse,
java.lang.String nonce) |
public DefaultOpenIdTokenResponseValidator(java.util.Collection<OpenIdClaimsValidator> idTokenValidators, java.util.Collection<GenericJwtClaimsValidator> genericJwtClaimsValidators, NonceClaimValidator nonceClaimValidator, JwkValidator jwkValidator)
idTokenValidators
- OpenID JWT claim validatorsgenericJwtClaimsValidators
- Generic JWT claim validatorsnonceClaimValidator
- The nonce claim validatorjwkValidator
- The JWK validatorpublic java.util.Optional<com.nimbusds.jwt.JWT> validate(OauthClientConfiguration clientConfiguration, OpenIdProviderMetadata openIdProviderMetadata, OpenIdTokenResponse openIdTokenResponse, @Nullable java.lang.String nonce)
validate
in interface OpenIdTokenResponseValidator
clientConfiguration
- The OAuth 2.0 client configurationopenIdProviderMetadata
- The OpenID provider metadataopenIdTokenResponse
- ID Token Access Token responsenonce
- The persisted nonce value