ALGORITHM, CRITICAL, JSON_WEB_KEY, JWK_SET_URL, KEY_ID, X509_CERT_CHAIN, X509_CERT_SHA1_THUMBPRINT, X509_CERT_SHA256_THUMBPRINT, X509_URLCOMPRESSION_ALGORITHM, CONTENT_TYPE, DEPRECATED_COMPRESSION_ALGORITHM, JWT_TYPE, TYPE| Constructor and Description |
|---|
DefaultJwsHeader() |
DefaultJwsHeader(Map<String,Object> map) |
| Modifier and Type | Method and Description |
|---|---|
String |
getAlgorithm()
Returns the JWS
alg (algorithm) header value or null if not present. |
String |
getKeyId()
Returns the JWS
kid (Key ID) header value or null if not present. |
JwsHeader |
setAlgorithm(String alg)
Sets the JWT
alg (Algorithm) header value. |
JwsHeader |
setKeyId(String kid)
Sets the JWT
kid (Key ID) header value. |
getCompressionAlgorithm, getContentType, getType, setCompressionAlgorithm, setContentType, setTypeclear, 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, waitgetCompressionAlgorithm, getContentType, getType, setCompressionAlgorithm, setContentType, setTypeclear, 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 getAlgorithm()
JwsHeaderalg (algorithm) header value or null if not present.
The algorithm header parameter identifies the cryptographic algorithm used to secure the JWS. Consider
using SignatureAlgorithm.forName to convert this
string value to a type-safe enum instance.
getAlgorithm in interface JwsHeaderalg header value or null if not present. This will always be
non-null on validly constructed JWS instances, but could be null during construction.public JwsHeader setAlgorithm(String alg)
JwsHeaderalg (Algorithm) header value. A null value will remove the property from the JSON map.
The algorithm header parameter identifies the cryptographic algorithm used to secure the JWS. Consider
using a type-safe SignatureAlgorithm instance and using its
value as the argument to this method.
setAlgorithm in interface JwsHeaderalg - the JWS alg header value or null to remove the property from the JSON map.Header instance for method chaining.public String getKeyId()
JwsHeaderkid (Key ID) header value or null if not present.
The keyId header parameter is a hint indicating which key was used to secure the JWS. This parameter allows originators to explicitly signal a change of key to recipients. The structure of the keyId value is unspecified.
When used with a JWK, the keyId value is used to match a JWK keyId parameter value.
public JwsHeader setKeyId(String kid)
JwsHeaderkid (Key ID) header value. A null value will remove the property from the JSON map.
The keyId header parameter is a hint indicating which key was used to secure the JWS. This parameter allows originators to explicitly signal a change of key to recipients. The structure of the keyId value is unspecified.
When used with a JWK, the keyId value is used to match a JWK keyId parameter value.
Copyright © 2016. All rights reserved.