Class JsonWebToken.Payload
- Enclosing class:
JsonWebToken
-
Nested Class Summary
Nested classes/interfaces inherited from class com.google.api.client.util.GenericData
GenericData.Flags
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,
V>, AbstractMap.SimpleImmutableEntry<K, V> -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Object
Audience claim that identifies the audience that the JWT is intended for (should either be aString
or aList<String>
) ornull
for none.private Long
Expiration time claim that identifies the expiration time (in seconds) on or after which the token MUST NOT be accepted for processing ornull
for none.private Long
Issued at claim that identifies the time (in seconds) at which the JWT was issued ornull
for none.private String
Issuer claim that identifies the principal that issued the JWT ornull
for none.private String
JWT ID claim that provides a unique identifier for the JWT ornull
for none.private Long
Not before claim that identifies the time (in seconds) before which the token MUST NOT be accepted for processing ornull
for none.private String
Subject claim identifying the principal that is the subject of the JWT ornull
for none.private String
Type claim that is used to declare a type for the contents of this JWT Claims Set ornull
for none. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
Makes a "deep" clone of the generic data, in which the clone is completely independent of the original.final Object
Returns the audience claim that identifies the audience that the JWT is intended for (should either be aString
or aList<String>
) ornull
for none.Returns the list of audience claim that identifies the audience that the JWT is intended for or empty for none.final Long
Returns the expiration time (in seconds) claim that identifies the expiration time on or after which the token MUST NOT be accepted for processing ornull
for none.final Long
Returns the issued at claim that identifies the time (in seconds) at which the JWT was issued ornull
for none.final String
Returns the issuer claim that identifies the principal that issued the JWT ornull
for none.final String
getJwtId()
Returns the JWT ID claim that provides a unique identifier for the JWT ornull
for none.final Long
Returns the not before claim that identifies the time (in seconds) before which the token MUST NOT be accepted for processing ornull
for none.final String
Returns the subject claim identifying the principal that is the subject of the JWT ornull
for none.final String
getType()
Returns the type claim that is used to declare a type for the contents of this JWT Claims Set ornull
for none.Sets the given field value (may benull
) for the given field name.setAudience
(Object audience) Sets the audience claim that identifies the audience that the JWT is intended for (should either be aString
or aList<String>
) ornull
for none.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 ornull
for none.setIssuedAtTimeSeconds
(Long issuedAtTimeSeconds) Sets the issued at claim that identifies the time (in seconds) at which the JWT was issued ornull
for none.Sets the issuer claim that identifies the principal that issued the JWT ornull
for none.Sets the JWT ID claim that provides a unique identifier for the JWT ornull
for none.setNotBeforeTimeSeconds
(Long notBeforeTimeSeconds) Sets the not before claim that identifies the time (in seconds) before which the token MUST NOT be accepted for processing ornull
for none.setSubject
(String subject) Sets the subject claim identifying the principal that is the subject of the JWT ornull
for none.Sets the type claim that is used to declare a type for the contents of this JWT Claims Set ornull
for none.Methods inherited from class com.google.api.client.json.GenericJson
getFactory, setFactory, toPrettyString, toString
Methods inherited from class com.google.api.client.util.GenericData
entrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys
Methods inherited from class java.util.AbstractMap
clear, containsKey, containsValue, isEmpty, keySet, size, values
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
Field Details
-
expirationTimeSeconds
Expiration time claim that identifies the expiration time (in seconds) on or after which the token MUST NOT be accepted for processing ornull
for none. -
notBeforeTimeSeconds
Not before claim that identifies the time (in seconds) before which the token MUST NOT be accepted for processing ornull
for none. -
issuedAtTimeSeconds
Issued at claim that identifies the time (in seconds) at which the JWT was issued ornull
for none. -
issuer
Issuer claim that identifies the principal that issued the JWT ornull
for none. -
audience
Audience claim that identifies the audience that the JWT is intended for (should either be aString
or aList<String>
) ornull
for none. -
jwtId
JWT ID claim that provides a unique identifier for the JWT ornull
for none. -
type
Type claim that is used to declare a type for the contents of this JWT Claims Set ornull
for none. -
subject
Subject claim identifying the principal that is the subject of the JWT ornull
for none.
-
-
Constructor Details
-
Payload
public Payload()
-
-
Method Details
-
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 ornull
for none. -
setExpirationTimeSeconds
Sets the expiration time claim that identifies the expiration time (in seconds) on or after which the token MUST NOT be accepted for processing ornull
for none.Overriding is only supported for the purpose of calling the super implementation and changing the return type, but nothing else.
-
getNotBeforeTimeSeconds
Returns the not before claim that identifies the time (in seconds) before which the token MUST NOT be accepted for processing ornull
for none. -
setNotBeforeTimeSeconds
Sets the not before claim that identifies the time (in seconds) before which the token MUST NOT be accepted for processing ornull
for none.Overriding is only supported for the purpose of calling the super implementation and changing the return type, but nothing else.
-
getIssuedAtTimeSeconds
Returns the issued at claim that identifies the time (in seconds) at which the JWT was issued ornull
for none. -
setIssuedAtTimeSeconds
Sets the issued at claim that identifies the time (in seconds) at which the JWT was issued ornull
for none.Overriding is only supported for the purpose of calling the super implementation and changing the return type, but nothing else.
-
getIssuer
Returns the issuer claim that identifies the principal that issued the JWT ornull
for none. -
setIssuer
Sets the issuer claim that identifies the principal that issued the JWT ornull
for none.Overriding is only supported for the purpose of calling the super implementation and changing the return type, but nothing else.
-
getAudience
Returns the audience claim that identifies the audience that the JWT is intended for (should either be aString
or aList<String>
) ornull
for none. -
getAudienceAsList
Returns the list of audience claim that identifies the audience that the JWT is intended for or empty for none. -
setAudience
Sets the audience claim that identifies the audience that the JWT is intended for (should either be aString
or aList<String>
) ornull
for none.Overriding is only supported for the purpose of calling the super implementation and changing the return type, but nothing else.
-
getJwtId
Returns the JWT ID claim that provides a unique identifier for the JWT ornull
for none. -
setJwtId
Sets the JWT ID claim that provides a unique identifier for the JWT ornull
for none.Overriding is only supported for the purpose of calling the super implementation and changing the return type, but nothing else.
-
getType
Returns the type claim that is used to declare a type for the contents of this JWT Claims Set ornull
for none. -
setType
Sets the type claim that is used to declare a type for the contents of this JWT Claims Set ornull
for none.Overriding is only supported for the purpose of calling the super implementation and changing the return type, but nothing else.
-
getSubject
Returns the subject claim identifying the principal that is the subject of the JWT ornull
for none. -
setSubject
Sets the subject claim identifying the principal that is the subject of the JWT ornull
for none.Overriding is only supported for the purpose of calling the super implementation and changing the return type, but nothing else.
-
set
Description copied from class:GenericData
Sets the given field value (may benull
) for the given field name. Any existing value for the field will be overwritten. It may be more slightly more efficient thanGenericData.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.
- Overrides:
set
in classGenericJson
-
clone
Description copied from class:GenericData
Makes a "deep" clone of the generic data, in which the clone is completely independent of the original.- Overrides:
clone
in classGenericJson
-