Package | Description |
---|---|
com.google.api.client.json.webtoken |
Modifier and Type | Method and Description |
---|---|
JsonWebToken.Payload |
JsonWebToken.Payload.clone() |
JsonWebToken.Payload |
JsonWebToken.getPayload()
Returns the payload.
|
JsonWebToken.Payload |
JsonWebToken.Payload.set(String fieldName,
Object value) |
JsonWebToken.Payload |
JsonWebToken.Payload.setAudience(Object audience)
Sets the audience claim that identifies the audience that the JWT is intended for (should
either be a
String or a List<String> ) 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.setSubject(String subject)
Sets the subject claim identifying the principal that is 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 |
JsonWebSignature.signUsingRsaSha256(PrivateKey privateKey,
JsonFactory jsonFactory,
JsonWebSignature.Header header,
JsonWebToken.Payload payload)
Signs a given JWS header and payload based on the given private key using RSA and SHA-256 as
described in JWS using
RSA SHA-256.
|
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–2022 Google. All rights reserved.