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.
- Since:
- 1.14 (since 1.7 as com.google.api.client.auth.jsontoken.JsonWebToken)
-
Nested Class Summary
Nested classes/interfaces inherited from class GenericData
GenericData.FlagsNested classes/interfaces inherited from class 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 StringReturns the content type header parameter used to declare structural information about the JWT ornullfor none.final StringgetType()Returns the type header parameter used to declare the type of this object ornullfor 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 ornullfor none.Sets the type header parameter used to declare the type of this object ornullfor none.Methods inherited from class GenericJson
getFactory, setFactory, toPrettyString, toStringMethods inherited from class GenericData
entrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeysMethods inherited from class AbstractMap
clear, containsKey, containsValue, isEmpty, keySet, size, valuesMethods inherited from interface 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 ornullfor none. -
contentType
Content type header parameter used to declare structural information about the JWT ornullfor none.
-
-
Constructor Details
-
Header
public Header()
-
-
Method Details
-
getType
Returns the type header parameter used to declare the type of this object ornullfor none. -
setType
Sets the type header parameter used to declare the type of this object ornullfor 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 ornullfor none. -
setContentType
Sets the content type header parameter used to declare structural information about the JWT ornullfor 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:GenericDataSets 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:
setin classGenericJson
-
clone
Description copied from class:GenericDataMakes a "deep" clone of the generic data, in which the clone is completely independent of the original.- Overrides:
clonein classGenericJson
-