public static class JsonWebSignature.Header extends JsonWebToken.Header
GenericData.Flags AbstractMap.SimpleEntry <K,V>, AbstractMap.SimpleImmutableEntry <K,V> | Constructor and Description |
|---|
Header()
|
| Modifier and Type | Method and Description |
|---|---|
JsonWebSignature |
clone()
Makes a "deep" clone of the generic data, in which the clone is completely independent of the original.
|
String |
getAlgorithm()
Returns the algorithm header parameter that identifies the cryptographic algorithm used to secure the JWS or
null for none.
|
List |
getCritical()
Returns the array listing the header parameter names that define extensions that are used in the JWS header that MUST be understood and processed or
null for none.
|
String |
getJwk()
Returns the JSON Web Key header parameter that is a public key that corresponds to the key used to digitally sign the JWS or
null for none.
|
String |
getJwkUrl()
Returns the JSON Web Key URL header parameter that is an absolute URL that refers to a resource for a set of JSON-encoded public keys, one of which corresponds to the key that was used to digitally sign the JWS or
null for none.
|
String |
getKeyId()
Returns the key ID header parameter that is a hint indicating which specific key owned by the signer should be used to validate the digital signature or
null for none.
|
String |
getX509Certificate()
Deprecated.
|
List |
getX509Certificates()
Returns the X.509 certificate chain header parameter contains the X.509 public key certificate or certificate chain corresponding to the key used to digitally sign the JWS or
null for none.
|
String |
getX509Thumbprint()
Returns the X.509 certificate thumbprint header parameter that provides a base64url encoded SHA-1 thumbprint (a.k.a.
|
String |
getX509Url()
Returns the X.509 URL header parameter that is an absolute URL that refers to a resource for the X.509 public key certificate or certificate chain corresponding to the key used to digitally sign the JWS or
null for none.
|
JsonWebSignature |
set(String
Sets the given field value (may be
null) for the given field name.
|
JsonWebSignature |
setAlgorithm(String
Sets the algorithm header parameter that identifies the cryptographic algorithm used to secure the JWS or
null for none.
|
JsonWebSignature |
setCritical(List
Sets the array listing the header parameter names that define extensions that are used in the JWS header that MUST be understood and processed or
null for none.
|
JsonWebSignature |
setJwk(String
Sets the JSON Web Key header parameter that is a public key that corresponds to the key used to digitally sign the JWS or
null for none.
|
JsonWebSignature |
setJwkUrl(String
Sets the JSON Web Key URL header parameter that is an absolute URL that refers to a resource for a set of JSON-encoded public keys, one of which corresponds to the key that was used to digitally sign the JWS or
null for none.
|
JsonWebSignature |
setKeyId(String
Sets the key ID header parameter that is a hint indicating which specific key owned by the signer should be used to validate the digital signature or
null for none.
|
JsonWebSignature |
setType(String
Sets the type header parameter used to declare the type of this object or
null for none.
|
JsonWebSignature |
setX509Certificate(String
Deprecated.
|
JsonWebSignature |
setX509Certificates(List
Sets the X.509 certificate chain header parameter contains the X.509 public key certificate or certificate chain corresponding to the key used to digitally sign the JWS or
null for none.
|
JsonWebSignature |
setX509Thumbprint(String
Sets the X.509 certificate thumbprint header parameter that provides a base64url encoded SHA-1 thumbprint (a.k.a.
|
JsonWebSignature |
setX509Url(String
Sets the X.509 URL header parameter that is an absolute URL that refers to a resource for the X.509 public key certificate or certificate chain corresponding to the key used to digitally sign the JWS or
null for none.
|
getContentType, getType, setContentTypegetFactory, 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 JsonWebSignature.Header setType(String type)
JsonWebToken.Header
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 StringgetAlgorithm()
null for none.
public JsonWebSignature.Header setAlgorithm(String algorithm)
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 StringgetJwkUrl()
null for none.
public JsonWebSignature.Header setJwkUrl(String jwkUrl)
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 StringgetJwk()
null for none.
public JsonWebSignature.Header setJwk(String jwk)
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 StringgetKeyId()
null for none.
public JsonWebSignature.Header setKeyId(String keyId)
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 StringgetX509Url()
null for none.
public JsonWebSignature.Header setX509Url(String x509Url)
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 StringgetX509Thumbprint()
null for none.
public JsonWebSignature.Header setX509Thumbprint(String x509Thumbprint)
null for none.
Overriding is only supported for the purpose of calling the super implementation and changing the return type, but nothing else.
@Deprecated public final StringgetX509Certificate()
null for none.
@deprecated Since release 1.19.1, replaced by getX509Certificates().
public final List<String > getX509Certificates()
null for none.
@Deprecated public JsonWebSignature.Header setX509Certificate(String x509Certificate)
null for none.
Overriding is only supported for the purpose of calling the super implementation and changing the return type, but nothing else.
@deprecated Since release 1.19.1, replaced by setX509Certificates(List x509Certificates).
public JsonWebSignature.Header setX509Certificates(List <String > x509Certificates)
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 List<String > getCritical()
null for none.
public JsonWebSignature.Header setCritical(List <String > critical)
null for none.
Overriding is only supported for the purpose of calling the super implementation and changing the return type, but nothing else.
public JsonWebSignature.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 JsonWebSignature.Header clone()
GenericData