public static class JsonWebToken.Header extends GenericJson
GenericData.Flags AbstractMap.SimpleEntry <K,V>, AbstractMap.SimpleImmutableEntry <K,V> | Constructor and Description |
|---|
Header()
|
| Modifier and Type | Method and Description |
|---|---|
JsonWebToken |
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 or
null for none.
|
String |
getType()
Returns the type header parameter used to declare the type of this object or
null for none.
|
JsonWebToken |
set(String
Sets the given field value (may be
null) for the given field name.
|
JsonWebToken |
setContentType(String
Sets the content type header parameter used to declare structural information about the JWT or
null for none.
|
JsonWebToken |
setType(String
Sets the type header parameter used to declare the type of this object or
null for none.
|
getFactory, setFactory, toPrettyString, toStringentrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, valuesfinalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllpublic final StringgetType()
null for none.
public JsonWebToken.Header setType(String type)
null for none.
Overriding is only supported for the purpose of calling the super implementation and changing the return type, but nothing else.
public final StringgetContentType()
null for none.
public JsonWebToken.Header setContentType(String contentType)
null for none.
Overriding is only supported for the purpose of calling the super implementation and changing the return type, but nothing else.
public JsonWebToken.Header set(String fieldName, Object value)
GenericData
null) for the given field name. Any existing value for the field will be overwritten. It may be more slightly more efficient than
GenericData.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.
public JsonWebToken.Header clone()
GenericData