COMPRESSION_ALGORITHM, CONTENT_TYPE, DEPRECATED_COMPRESSION_ALGORITHM, JWT_TYPE, TYPE| Constructor and Description |
|---|
DefaultHeader() |
DefaultHeader(Map<String,Object> map) |
| Modifier and Type | Method and Description |
|---|---|
String |
getCompressionAlgorithm()
Returns the JWT
calg (Compression Algorithm) header value or null if not present. |
String |
getContentType()
Returns the
cty (Content Type) header value or null if not present. |
String |
getType()
Returns the
typ (type) header value or null if not present. |
T |
setCompressionAlgorithm(String compressionAlgorithm)
Sets the JWT
calg (Compression Algorithm) header parameter value. |
T |
setContentType(String cty)
Sets the JWT
cty (Content Type) header parameter value. |
T |
setType(String typ)
Sets the JWT
typ (Type) header value. |
clear, containsKey, containsValue, entrySet, equals, get, getDate, getString, hashCode, isEmpty, keySet, put, putAll, remove, setDate, setValue, size, toDate, toString, valuesclone, finalize, getClass, notify, notifyAll, wait, wait, waitclear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, valuespublic String getType()
Headertyp (type) header value or null if not present.public T setType(String typ)
Headertyp (Type) header value. A null value will remove the property from the JSON map.public String getContentType()
Headercty (Content Type) header value or null if not present.
In the normal case where nested signing or encryption operations are not employed (i.e. a compact
serialization JWT), the use of this header parameter is NOT RECOMMENDED. In the case that nested
signing or encryption is employed, this Header Parameter MUST be present; in this case, the value MUST be
JWT, to indicate that a Nested JWT is carried in this JWT. While media type names are not
case-sensitive, it is RECOMMENDED that JWT always be spelled using uppercase characters for
compatibility with legacy implementations. See
JWT Appendix A.2 for
an example of a Nested JWT.
getContentType in interface Header<T extends Header<T>>typ header parameter value or null if not present.public T setContentType(String cty)
Headercty (Content Type) header parameter value. A null value will remove the property from
the JSON map.
In the normal case where nested signing or encryption operations are not employed (i.e. a compact
serialization JWT), the use of this header parameter is NOT RECOMMENDED. In the case that nested
signing or encryption is employed, this Header Parameter MUST be present; in this case, the value MUST be
JWT, to indicate that a Nested JWT is carried in this JWT. While media type names are not
case-sensitive, it is RECOMMENDED that JWT always be spelled using uppercase characters for
compatibility with legacy implementations. See
JWT Appendix A.2 for
an example of a Nested JWT.
setContentType in interface Header<T extends Header<T>>cty - the JWT JOSE cty header value or null to remove the property from the JSON map.public String getCompressionAlgorithm()
Headercalg (Compression Algorithm) header value or null if not present.getCompressionAlgorithm in interface Header<T extends Header<T>>calg header parameter value or null if not present.public T setCompressionAlgorithm(String compressionAlgorithm)
Headercalg (Compression Algorithm) header parameter value. A null value will remove
the property from the JSON map.
The compression algorithm is NOT part of the Specified by:
setCompressionAlgorithm in interface Header<T extends Header<T>>compressionAlgorithm - the JWT compression algorithm calg value or null to remove the property from the JSON map.
Copyright © 2016. All rights reserved.