Interface OpenIdTokenResponseValidator
- All Known Implementing Classes:
DefaultOpenIdTokenResponseValidator
@DefaultImplementation(DefaultOpenIdTokenResponseValidator.class)
public interface OpenIdTokenResponseValidator
Validates an OpenID token response.
- Since:
- 1.2.0
- Author:
- Sergio del Amo
-
Method Summary
Modifier and TypeMethodDescriptionOptional<com.nimbusds.jwt.JWT>
validate
(OauthClientConfiguration clientConfiguration, OpenIdProviderMetadata openIdProviderMetadata, OpenIdTokenResponse openIdTokenResponse, @Nullable String nonce)
-
Method Details
-
validate
Optional<com.nimbusds.jwt.JWT> validate(OauthClientConfiguration clientConfiguration, OpenIdProviderMetadata openIdProviderMetadata, OpenIdTokenResponse openIdTokenResponse, @Nullable @Nullable String nonce) - Parameters:
clientConfiguration
- The OAuth 2.0 client configurationopenIdProviderMetadata
- The OpenID provider metadataopenIdTokenResponse
- ID Token Access Token responsenonce
- The persisted nonce value- Returns:
- true if the ID Token access response is considered valid
-