Class JsonWebToken.Header
- java.lang.Object
-
- java.util.AbstractMap<java.lang.String,java.lang.Object>
-
- com.google.api.client.util.GenericData
-
- com.google.api.client.json.GenericJson
-
- com.google.api.client.json.webtoken.JsonWebToken.Header
-
- All Implemented Interfaces:
java.lang.Cloneable,java.util.Map<java.lang.String,java.lang.Object>
- 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
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.StringcontentTypeContent type header parameter used to declare structural information about the JWT ornullfor none.private java.lang.StringtypeType header parameter used to declare the type of this object ornullfor none.
-
Constructor Summary
Constructors Constructor Description Header()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JsonWebToken.Headerclone()Makes a "deep" clone of the generic data, in which the clone is completely independent of the original.java.lang.StringgetContentType()Returns the content type header parameter used to declare structural information about the JWT ornullfor none.java.lang.StringgetType()Returns the type header parameter used to declare the type of this object ornullfor none.JsonWebToken.Headerset(java.lang.String fieldName, java.lang.Object value)Sets the given field value (may benull) for the given field name.JsonWebToken.HeadersetContentType(java.lang.String contentType)Sets the content type header parameter used to declare structural information about the JWT ornullfor none.JsonWebToken.HeadersetType(java.lang.String type)Sets the type header parameter used to declare the type of this object ornullfor 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
-
-
-
-
Method Detail
-
getType
public final java.lang.String getType()
Returns the type header parameter used to declare the type of this object ornullfor none.
-
setType
public JsonWebToken.Header setType(java.lang.String type)
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
public final java.lang.String getContentType()
Returns the content type header parameter used to declare structural information about the JWT ornullfor none.
-
setContentType
public JsonWebToken.Header setContentType(java.lang.String contentType)
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
public JsonWebToken.Header set(java.lang.String fieldName, java.lang.Object value)
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
public JsonWebToken.Header 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
-
-