| Package | Description |
|---|---|
| com.google.api.client.auth.jsontoken |
| Modifier and Type | Method and Description |
|---|---|
JsonWebToken.Payload |
JsonWebToken.getPayload()
Returns the payload.
|
JsonWebToken.Payload |
JsonWebToken.Payload.setAudience(String audience)
Sets the audience claim that identifies the audience that the JWT is intended for or
null for none. |
JsonWebToken.Payload |
JsonWebToken.Payload.setExpirationTimeSeconds(Long expirationTimeSeconds)
Sets the expiration time claim that identifies the expiration time (in seconds) on or after
which the token MUST NOT be accepted for processing or
null for none. |
JsonWebToken.Payload |
JsonWebToken.Payload.setIssuedAtTimeSeconds(Long issuedAtTimeSeconds)
Sets the issued at claim that identifies the time (in seconds) at which the JWT was issued or
null for none. |
JsonWebToken.Payload |
JsonWebToken.Payload.setIssuer(String issuer)
Sets the issuer claim that identifies the principal that issued the JWT or
null for
none. |
JsonWebToken.Payload |
JsonWebToken.Payload.setJwtId(String jwtId)
Sets the JWT ID claim that provides a unique identifier for the JWT or
null for none. |
JsonWebToken.Payload |
JsonWebToken.Payload.setNotBeforeTimeSeconds(Long notBeforeTimeSeconds)
Sets the not before claim that identifies the time (in seconds) before which the token MUST
NOT be accepted for processing or
null for none. |
JsonWebToken.Payload |
JsonWebToken.Payload.setPrincipal(String principal)
Sets the principal claim that identifies the subject of the JWT or
null for none. |
JsonWebToken.Payload |
JsonWebToken.Payload.setType(String type)
Sets the type claim that is used to declare a type for the contents of this JWT Claims Set or
null for none. |
| Modifier and Type | Method and Description |
|---|---|
Class<? extends JsonWebToken.Payload> |
JsonWebSignature.Parser.getPayloadClass()
Returns the payload class to use for parsing.
|
| Modifier and Type | Method and Description |
|---|---|
static String |
RsaSHA256Signer.sign(PrivateKey privateKey,
com.google.api.client.json.JsonFactory jsonFactory,
JsonWebSignature.Header header,
JsonWebToken.Payload payload)
Signs a given JWS header and payload based on the given private key.
|
| Modifier and Type | Method and Description |
|---|---|
JsonWebSignature.Parser |
JsonWebSignature.Parser.setPayloadClass(Class<? extends JsonWebToken.Payload> payloadClass)
Sets the payload class to use for parsing.
|
| Constructor and Description |
|---|
JsonWebSignature(JsonWebSignature.Header header,
JsonWebToken.Payload payload,
byte[] signatureBytes,
byte[] signedContentBytes) |
JsonWebToken(JsonWebToken.Header header,
JsonWebToken.Payload payload) |
Copyright © 2011-2012 Google. All Rights Reserved.