| Package | Description |
|---|---|
| io.helidon.security.jwt |
JWT (JSON web token) support.
|
| Modifier and Type | Method and Description |
|---|---|
Jwt |
Jwt.Builder.build()
Build and instance of the
Jwt. |
Jwt |
SignedJwt.getJwt()
Return a Jwt instance from this signed JWT.
|
| Modifier and Type | Method and Description |
|---|---|
static java.util.List<Validator<Jwt>> |
Jwt.defaultTimeValidators()
Return a list of validators to validate expiration time, issue time and not-before time.
|
static java.util.List<Validator<Jwt>> |
Jwt.defaultTimeValidators(java.time.Instant now,
int timeSkewAmount,
java.time.temporal.ChronoUnit timeSkewUnit,
boolean mandatory)
Return a list of validators to validate expiration time, issue time and not-before time.
|
| Modifier and Type | Method and 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 from
JwkKeys. |
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) |
| Modifier and Type | Method and Description |
|---|---|
static void |
Jwt.addAudienceValidator(java.util.Collection<Validator<Jwt>> validators,
java.lang.String audience,
boolean mandatory)
Add validator of audience to the collection of validators.
|
static void |
Jwt.addIssuerValidator(java.util.Collection<Validator<Jwt>> validators,
java.lang.String issuer,
boolean mandatory)
Add validator of issuer to the collection of validators.
|
static Jwt.FieldValidator |
Jwt.FieldValidator.create(java.util.function.Function<Jwt,java.util.Optional<java.lang.String>> fieldAccessor,
java.lang.String name,
java.lang.String expectedValue)
A generic optional field validator based on a function to get the field.
|
static Jwt.FieldValidator |
Jwt.FieldValidator.create(java.util.function.Function<Jwt,java.util.Optional<java.lang.String>> fieldAccessor,
java.lang.String name,
java.lang.String expectedValue,
boolean mandatory)
A generic field validator based on a function to get the field.
|
Errors |
Jwt.validate(java.util.List<Validator<Jwt>> validators)
Validate this JWT against provided validators.
|
Copyright © 2018, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.