public static class JsonWebToken.Header extends GenericJson
GenericData.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
Header() |
| Modifier and Type | Method and 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 or
null for none. |
String |
getType()
Returns the type header parameter used to declare the type of this object or
null for
none. |
JsonWebToken.Header |
set(String fieldName,
Object value)
Sets the given field value (may be
null) for the given field name. |
JsonWebToken.Header |
setContentType(String contentType)
Sets the content type header parameter used to declare structural information about the JWT
or
null for none. |
JsonWebToken.Header |
setType(String type)
Sets the type header parameter used to declare the type of this object or
null for
none. |
getFactory, setFactory, toPrettyString, toStringentrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, isEmpty, keySet, size, valuesfinalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllpublic final String getType()
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 String getContentType()
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)
GenericDatanull) 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.
set in class GenericJsonpublic JsonWebToken.Header clone()
GenericDataclone in class GenericJsonCopyright © 2011–2024 Google. All rights reserved.