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
public static class JsonWebToken.Header extends GenericJson
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 extends Object,V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object,V extends Object>
-
-
Constructor Summary
Constructors Constructor Description Header()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JsonWebToken.Header
clone()
Makes a "deep" clone of the generic data, in which the clone is completely independent of the original.String
getContentType()
Returns the content type header parameter used to declare structural information about the JWT ornull
for none.String
getType()
Returns the type header parameter used to declare the type of this object ornull
for none.JsonWebToken.Header
set(String fieldName, Object value)
Sets the given field value (may benull
) for the given field name.JsonWebToken.Header
setContentType(String contentType)
Sets the content type header parameter used to declare structural information about the JWT ornull
for none.JsonWebToken.Header
setType(String type)
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
-
-
-
-
Method Detail
-
getType
public final String getType()
Returns the type header parameter used to declare the type of this object ornull
for none.
-
setType
public JsonWebToken.Header setType(String type)
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
public final String getContentType()
Returns the content type header parameter used to declare structural information about the JWT ornull
for none.
-
setContentType
public JsonWebToken.Header setContentType(String contentType)
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
public JsonWebToken.Header set(String fieldName, Object value)
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
public JsonWebToken.Header 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
-
-