| Package | Description |
|---|---|
| com.google.crypto.tink.jwt |
| Modifier and Type | Method and Description |
|---|---|
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. |
List<String> |
VerifiedJwt.getAudiences()
Returns the
aud claim identifying the principals that are the audience of the JWT. |
Boolean |
VerifiedJwt.getBooleanClaim(String name)
Returns the non-registered claim of name
name and type Boolean. |
Instant |
VerifiedJwt.getExpiration()
Returns the expiration time claim
exp that identifies the instant on or after which the
token MUST NOT be accepted for processing. |
Instant |
VerifiedJwt.getIssuedAt()
Returns the issued at time claim
iat that identifies the instant at which the JWT was
issued. |
String |
VerifiedJwt.getIssuer()
Returns the
iss claim that identifies the principal that issued the JWT. |
String |
VerifiedJwt.getJsonArrayClaim(String name)
Returns the non-registered claim of name
name and type JSON Array encoded in a string. |
String |
VerifiedJwt.getJsonObjectClaim(String name)
Returns the non-registered claim of name
name and type JSON Object encoded in a string. |
String |
VerifiedJwt.getJwtId()
Returns the
jti claim that provides a unique identifier for the JWT. |
Instant |
VerifiedJwt.getNotBefore()
Returns the not before claim
nbf that identifies the instant before which the token
MUST NOT be accepted for processing. |
Double |
VerifiedJwt.getNumberClaim(String name)
Returns the non-registered claim of name
name and type Number. |
String |
VerifiedJwt.getStringClaim(String name)
Returns the non-registered claim of name
name and type String. |
String |
VerifiedJwt.getSubject()
Returns the
sub claim identifying the principal that is the subject of the JWT. |
String |
VerifiedJwt.getTypeHeader()
Returns the
typ header value. |