Class JwtValidators
java.lang.Object
com.codename1.backend.security.oauth2.jwt.JwtValidators
The validators a decoder is usually given.
decoder.setJwtValidator(JwtValidators.createDefaultWithValidators(
new JwtIssuerValidator(issuer), new JwtAudienceValidator("orders-api")));
-
Method Summary
Modifier and TypeMethodDescriptionstatic OAuth2TokenValidator<Jwt> static OAuth2TokenValidator<Jwt> createDefaultWithIssuer(String issuer) static OAuth2TokenValidator<Jwt> createDefault()and these as well.
-
Method Details
-
createDefault
-
createDefaultWithIssuer
-
createDefaultWithValidators
@SafeVarargs public static OAuth2TokenValidator<Jwt> createDefaultWithValidators(OAuth2TokenValidator<Jwt>... more) createDefault()and these as well. Giving aJwtTimestampValidatorof one's own replaces the default one.
-