public static class JsonWebToken.Payload extends GenericJson
GenericData.Flags AbstractMap.SimpleEntry <K,V>, AbstractMap.SimpleImmutableEntry <K,V> | Constructor and Description |
|---|
Payload()
|
| Modifier and Type | Method and Description |
|---|---|
JsonWebToken |
clone()
Makes a "deep" clone of the generic data, in which the clone is completely independent of the original.
|
Object |
getAudience()
Returns 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.
|
List |
getAudienceAsList()
Returns the list of audience claim that identifies the audience that the JWT is intended for or empty for none.
|
Long |
getExpirationTimeSeconds()
Returns the expiration time (in seconds) claim that identifies the expiration time on or after which the token MUST NOT be accepted for processing or
null for none.
|
Long |
getIssuedAtTimeSeconds()
Returns the issued at claim that identifies the time (in seconds) at which the JWT was issued or
null for none.
|
String |
getIssuer()
Returns the issuer claim that identifies the principal that issued the JWT or
null for none.
|
String |
getJwtId()
Returns the JWT ID claim that provides a unique identifier for the JWT or
null for none.
|
Long |
getNotBeforeTimeSeconds()
Returns the not before claim that identifies the time (in seconds) before which the token MUST NOT be accepted for processing or
null for none.
|
String |
getSubject()
Returns the subject claim identifying the principal that is the subject of the JWT or
null for none.
|
String |
getType()
Returns the type claim that is used to declare a type for the contents of this JWT Claims Set or
null for none.
|
JsonWebToken |
set(String
Sets the given field value (may be
null) for the given field name.
|
JsonWebToken |
setAudience(Object
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 |
setExpirationTimeSeconds(Long
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 |
setIssuedAtTimeSeconds(Long
Sets the issued at claim that identifies the time (in seconds) at which the JWT was issued or
null for none.
|
JsonWebToken |
setIssuer(String
Sets the issuer claim that identifies the principal that issued the JWT or
null for none.
|
JsonWebToken |
setJwtId(String
Sets the JWT ID claim that provides a unique identifier for the JWT or
null for none.
|
JsonWebToken |
setNotBeforeTimeSeconds(Long
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 |
setSubject(String
Sets the subject claim identifying the principal that is the subject of the JWT or
null for none.
|
JsonWebToken |
setType(String
Sets the type claim that is used to declare a type for the contents of this JWT Claims Set or
null for none.
|
getFactory, setFactory, toPrettyString, toStringentrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, valuesfinalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllpublic final LonggetExpirationTimeSeconds()
null for none.
public JsonWebToken.Payload setExpirationTimeSeconds(Long expirationTimeSeconds)
null for none.
Overriding is only supported for the purpose of calling the super implementation and changing the return type, but nothing else.
public final LonggetNotBeforeTimeSeconds()
null for none.
public JsonWebToken.Payload setNotBeforeTimeSeconds(Long notBeforeTimeSeconds)
null for none.
Overriding is only supported for the purpose of calling the super implementation and changing the return type, but nothing else.
public final LonggetIssuedAtTimeSeconds()
null for none.
public JsonWebToken.Payload setIssuedAtTimeSeconds(Long issuedAtTimeSeconds)
null for none.
Overriding is only supported for the purpose of calling the super implementation and changing the return type, but nothing else.
public final StringgetIssuer()
null for none.
public JsonWebToken.Payload setIssuer(String issuer)
null for none.
Overriding is only supported for the purpose of calling the super implementation and changing the return type, but nothing else.
public final ObjectgetAudience()
String or a
List<String>) or
null for none.
public final List<String > getAudienceAsList()
public JsonWebToken.Payload setAudience(Object audience)
String or a
List<String>) or
null for none.
Overriding is only supported for the purpose of calling the super implementation and changing the return type, but nothing else.
public final StringgetJwtId()
null for none.
public JsonWebToken.Payload setJwtId(String jwtId)
null for none.
Overriding is only supported for the purpose of calling the super implementation and changing the return type, but nothing else.
public final StringgetType()
null for none.
public JsonWebToken.Payload setType(String type)
null for none.
Overriding is only supported for the purpose of calling the super implementation and changing the return type, but nothing else.
public final StringgetSubject()
null for none.
public JsonWebToken.Payload setSubject(String subject)
null for none.
Overriding is only supported for the purpose of calling the super implementation and changing the return type, but nothing else.
public JsonWebToken.Payload set(String fieldName, Object value)
GenericData
null) for the given field name. Any existing value for the field will be overwritten. It may be more slightly more efficient than
GenericData.put(String, Object) because it avoids accessing the field's original value.
Overriding is only supported for the purpose of calling the super implementation and changing the return type, but nothing else.
public JsonWebToken.Payload clone()
GenericData