Class NonceClaimValidator
java.lang.Object
io.micronaut.security.oauth2.endpoint.token.response.validation.NonceClaimValidator
@Requires(property="micronaut.security.token.jwt.claims-validators.nonce",
notEquals="false")
@Singleton
public class NonceClaimValidator
extends Object
Responsible for validating the nonce claim.
- Since:
- 1.2.0
- Author:
- James Kleeh
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
validate
(OpenIdClaims claims, OauthClientConfiguration clientConfiguration, OpenIdProviderMetadata providerMetadata, @Nullable String nonce)
-
Constructor Details
-
NonceClaimValidator
public NonceClaimValidator()
-
-
Method Details
-
validate
public boolean validate(OpenIdClaims claims, OauthClientConfiguration clientConfiguration, OpenIdProviderMetadata providerMetadata, @Nullable @Nullable String nonce) - Parameters:
claims
- ID Token ClaimsclientConfiguration
- OAuth 2.0 Client ConfigurationproviderMetadata
- OpenID Connect provider metadatanonce
- The nonce value- Returns:
- Whether the JWT Claims pass validation or not.
-