Class JsonWebToken.Header
java.lang.Object
java.util.AbstractMap<String,Object>
com.google.api.client.util.GenericData
com.google.api.client.json.GenericJson
com.google.api.client.json.webtoken.JsonWebToken.Header
- Direct Known Subclasses:
JsonWebSignature.Header
- Enclosing class:
JsonWebToken
Header as specified in JWT Header.
-
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
Fields -
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 String
Returns the content type header parameter used to declare structural information about the JWT ornull
for none.final String
getType()
Returns the type header parameter used to declare the type of this object ornull
for none.Sets the given field value (may benull
) for the given field name.setContentType
(String contentType) Sets the content type header parameter used to declare structural information about the JWT ornull
for none.Sets the type header parameter used to declare the type of this object 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, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
Methods inherited from class java.util.AbstractMap
clear, containsKey, containsValue, equals, hashCode, 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
-
type
Type header parameter used to declare the type of this object ornull
for none. -
contentType
Content type header parameter used to declare structural information about the JWT ornull
for none.
-
-
Constructor Details
-
Header
public Header()
-
-
Method Details
-
getType
Returns the type header parameter used to declare the type of this object ornull
for none. -
setType
Sets the type header parameter used to declare the type of this object ornull
for none.Overriding is only supported for the purpose of calling the super implementation and changing the return type, but nothing else.
-
getContentType
Returns the content type header parameter used to declare structural information about the JWT ornull
for none. -
setContentType
Sets the content type header parameter used to declare structural information about 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
-