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.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, toString
entrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, isEmpty, keySet, size, values
finalize, getClass, notify, notifyAll, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
public 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)
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.
set
in class GenericJson
public JsonWebToken.Header clone()
GenericData
clone
in class GenericJson
Copyright © 2011–2022 Google. All rights reserved.