Uses of Class
io.helidon.security.jwt.Jwt
-
Packages that use Jwt Package Description io.helidon.security.jwt JWT (JSON web token) support. -
-
Uses of Jwt in io.helidon.security.jwt
Methods in io.helidon.security.jwt that return Jwt Modifier and Type Method Description Jwt
Jwt.Builder. build()
Build and instance of theJwt
.Jwt
SignedJwt. getJwt()
Return a Jwt instance from this signed JWT.Methods in io.helidon.security.jwt that return types with arguments of type Jwt Modifier and Type Method Description static List<Validator<Jwt>>
Jwt. defaultTimeValidators()
Return a list of validators to validate expiration time, issue time and not-before time.static List<Validator<Jwt>>
Jwt. defaultTimeValidators(Instant now, int timeSkewAmount, ChronoUnit timeSkewUnit, boolean mandatory)
Return a list of validators to validate expiration time, issue time and not-before time.Methods in io.helidon.security.jwt with parameters of type Jwt Modifier and Type Method Description static SignedJwt
SignedJwt. sign(Jwt jwt, Jwk jwk)
Sign a jwt using an explicit jwk.static SignedJwt
SignedJwt. sign(Jwt jwt, JwkKeys jwks)
Sign a jwt using a key obtained based on kid fromJwkKeys
.void
Jwt.ExpirationValidator. validate(Jwt token, Errors.Collector collector)
void
Jwt.FieldValidator. validate(Jwt token, Errors.Collector collector)
void
Jwt.IssueTimeValidator. validate(Jwt token, Errors.Collector collector)
void
Jwt.NotBeforeValidator. validate(Jwt token, Errors.Collector collector)
Method parameters in io.helidon.security.jwt with type arguments of type Jwt Modifier and Type Method Description static void
Jwt. addAudienceValidator(Collection<Validator<Jwt>> validators, String audience, boolean mandatory)
Add validator of audience to the collection of validators.static void
Jwt. addAudienceValidator(Collection<Validator<Jwt>> validators, Set<String> audience, boolean mandatory)
Add validator of audience to the collection of validators.static void
Jwt. addIssuerValidator(Collection<Validator<Jwt>> validators, String issuer, boolean mandatory)
Add validator of issuer to the collection of validators.static void
Jwt. addUserPrincipalValidator(Collection<Validator<Jwt>> validators)
Adds a validator that makes sure theuserPrincipal()
is present.static Jwt.FieldValidator
Jwt.FieldValidator. create(Function<Jwt,Optional<String>> fieldAccessor, String name, String expectedValue)
A generic optional field validator based on a function to get the field.static Jwt.FieldValidator
Jwt.FieldValidator. create(Function<Jwt,Optional<String>> fieldAccessor, String name, String expectedValue, boolean mandatory)
A generic field validator based on a function to get the field.Errors
Jwt. validate(List<Validator<Jwt>> validators)
Validate this JWT against provided validators.
-