| Package | Description |
|---|---|
| com.google.crypto.tink.jwt |
| Modifier and Type | Method and Description |
|---|---|
RawJwt.Builder |
RawJwt.Builder.addAudience(String value)
Adds an audience that the JWT is intended for.
|
RawJwt.Builder |
RawJwt.Builder.addBooleanClaim(String name,
boolean value)
Adds a custom claim of type
boolean to the JWT. |
RawJwt.Builder |
RawJwt.Builder.addJsonArrayClaim(String name,
String encodedJsonArray)
Adds a custom claim encoded in a JSON
String to the JWT. |
RawJwt.Builder |
RawJwt.Builder.addJsonObjectClaim(String name,
String encodedJsonObject)
Adds a custom claim encoded in a JSON
String to the JWT. |
RawJwt.Builder |
RawJwt.Builder.addNullClaim(String name)
Adds a custom claim with value null.
|
RawJwt.Builder |
RawJwt.Builder.addNumberClaim(String name,
double value)
Adds a custom claim of type
double to the JWT. |
RawJwt.Builder |
RawJwt.Builder.addStringClaim(String name,
String value)
Adds a custom claim of type
String to the JWT. |
static RawJwt.Builder |
RawJwt.newBuilder()
Returns a new RawJwt.Builder.
|
RawJwt.Builder |
RawJwt.Builder.setAudience(String value)
Sets the audience that the JWT is intended for.
|
RawJwt.Builder |
RawJwt.Builder.setAudiences(List<String> values)
Sets the audiences that the JWT is intended for.
|
RawJwt.Builder |
RawJwt.Builder.setExpiration(Instant value)
Sets the
exp claim that identifies the instant on or after which the token MUST NOT
be accepted for processing. |
RawJwt.Builder |
RawJwt.Builder.setIssuedAt(Instant value)
Sets the
iat claim that identifies the instant at which the JWT was issued. |
RawJwt.Builder |
RawJwt.Builder.setIssuer(String value)
Sets the issuer claim that identifies the principal that issued the JWT.
|
RawJwt.Builder |
RawJwt.Builder.setJwtId(String value)
Sets the JWT ID claim that provides a unique identifier for the JWT.
|
RawJwt.Builder |
RawJwt.Builder.setNotBefore(Instant value)
Sets the
nbf claim that identifies the instant before which the token MUST NOT be
accepted for processing. |
RawJwt.Builder |
RawJwt.Builder.setSubject(String value)
Sets the subject claim identifying the principal that is the subject of the JWT.
|
RawJwt.Builder |
RawJwt.Builder.setTypeHeader(String value)
Sets the Type Header Parameter.
|
RawJwt.Builder |
RawJwt.Builder.withoutExpiration()
Allow generating tokens without an expiration.
|