Class DefaultJwtTokenValidator
java.lang.Object
no.nav.security.token.support.core.validation.DefaultJwtTokenValidator
- All Implemented Interfaces:
JwtTokenValidator
@Deprecated(since="3.1.3",
forRemoval=true)
public class DefaultJwtTokenValidator
extends Object
implements JwtTokenValidator
Deprecated, for removal: This API element is subject to removal in a future version.
"Default" JwtTokenValidator. JWT must have claims that fulfill the OpenID Connect id_token requirements.
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultJwtTokenValidator(String issuer, List<String> acceptedAudience, com.nimbusds.jose.jwk.source.RemoteJWKSet<com.nimbusds.jose.proc.SecurityContext> remoteJWKSet) Deprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionvoidassertValidToken(String tokenString) Deprecated, for removal: This API element is subject to removal in a future version.voidassertValidToken(String tokenString, String expectedNonce) Deprecated, for removal: This API element is subject to removal in a future version.protected com.nimbusds.openid.connect.sdk.validators.IDTokenValidatorcreateValidator(String issuer, String clientId) Deprecated, for removal: This API element is subject to removal in a future version.protected com.nimbusds.openid.connect.sdk.validators.IDTokenValidatorget(com.nimbusds.jwt.JWT jwt) Deprecated, for removal: This API element is subject to removal in a future version.
-
Constructor Details
-
Method Details
-
assertValidToken
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
assertValidTokenin interfaceJwtTokenValidator- Throws:
JwtTokenValidatorException
-
assertValidToken
public void assertValidToken(String tokenString, String expectedNonce) throws JwtTokenValidatorException Deprecated, for removal: This API element is subject to removal in a future version.- Throws:
JwtTokenValidatorException
-
get
protected com.nimbusds.openid.connect.sdk.validators.IDTokenValidator get(com.nimbusds.jwt.JWT jwt) throws ParseException, JwtTokenValidatorException Deprecated, for removal: This API element is subject to removal in a future version. -
createValidator
protected com.nimbusds.openid.connect.sdk.validators.IDTokenValidator createValidator(String issuer, String clientId) Deprecated, for removal: This API element is subject to removal in a future version.
-
Use
DefaultConfigurableJwtValidatorinstead.