Class JsonWebSignature.Header
- Enclosing class:
JsonWebSignature
- Since:
- 1.14 (since 1.7 as com.google.api.client.auth.jsontoken.JsonWebSignature)
-
Nested Class Summary
Nested classes/interfaces inherited from class GenericData
GenericData.FlagsNested classes/interfaces inherited from class AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K, V> -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate StringAlgorithm header parameter that identifies the cryptographic algorithm used to secure the JWS ornullfor none.Array listing the header parameter names that define extensions that are used in the JWS header that MUST be understood and processed ornullfor none.private StringJSON Web Key header parameter that is a public key that corresponds to the key used to digitally sign the JWS ornullfor none.private StringJSON 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 ornullfor none.private StringKey ID header parameter that is a hint indicating which specific key owned by the signer should be used to validate the digital signature ornullfor none.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 ornullfor none.private StringX.509 certificate thumbprint header parameter that provides a base64url encoded SHA-1 thumbprint (a.k.a.private StringX.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 ornullfor none. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()Makes a "deep" clone of the generic data, in which the clone is completely independent of the original.final StringReturns the algorithm header parameter that identifies the cryptographic algorithm used to secure the JWS ornullfor none.Returns an array listing the header parameter names that define extensions used in the JWS header that MUST be understood and processed ornullfor none.final StringgetJwk()Returns the JSON Web Key header parameter that is a public key that corresponds to the key used to digitally sign the JWS ornullfor none.final StringReturns 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 ornullfor none.final StringgetKeyId()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 ornullfor none.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 ornullfor none.final StringReturns the X.509 certificate thumbprint header parameter that provides a base64url encoded SHA-1 thumbprint (a.k.a.final StringReturns 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 ornullfor none.Sets the given field value (may benull) for the given field name.setAlgorithm(String algorithm) Sets the algorithm header parameter that identifies the cryptographic algorithm used to secure the JWS ornullfor none.setCritical(List<String> critical) Sets the header parameter names that define extensions used in the JWS header that MUST be understood and processed ornullfor none.Sets the JSON Web Key header parameter that is a public key that corresponds to the key used to digitally sign the JWS ornullfor none.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 ornullfor none.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 ornullfor none.Sets the type header parameter used to declare the type of this object ornullfor none.setX509Certificates(List<String> x509Certificates) 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 ornullfor none.setX509Thumbprint(String x509Thumbprint) Sets the X.509 certificate thumbprint header parameter that provides a base64url encoded SHA-1 thumbprint (a.k.a.setX509Url(String x509Url) 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 ornullfor none.Methods inherited from class JsonWebToken.Header
getContentType, getType, setContentTypeMethods inherited from class GenericJson
getFactory, setFactory, toPrettyString, toStringMethods inherited from class GenericData
entrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeysMethods inherited from class AbstractMap
clear, containsKey, containsValue, isEmpty, keySet, size, valuesMethods inherited from interface Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
Field Details
-
algorithm
Algorithm header parameter that identifies the cryptographic algorithm used to secure the JWS ornullfor none. -
jwkUrl
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 ornullfor none. -
jwk
JSON Web Key header parameter that is a public key that corresponds to the key used to digitally sign the JWS ornullfor none. -
keyId
Key ID header parameter that is a hint indicating which specific key owned by the signer should be used to validate the digital signature ornullfor none. -
x509Url
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 ornullfor none. -
x509Thumbprint
X.509 certificate thumbprint header parameter that provides a base64url encoded SHA-1 thumbprint (a.k.a. digest) of the DER encoding of an X.509 certificate that can be used to match the certificate ornullfor none. -
x509Certificates
-
critical
-
-
Constructor Details
-
Header
public Header()
-
-
Method Details
-
setType
Description copied from class:JsonWebToken.HeaderSets the type header parameter used to declare the type of this object ornullfor none.Overriding is only supported for the purpose of calling the super implementation and changing the return type, but nothing else.
- Overrides:
setTypein classJsonWebToken.Header
-
getAlgorithm
Returns the algorithm header parameter that identifies the cryptographic algorithm used to secure the JWS ornullfor none. -
setAlgorithm
Sets the algorithm header parameter that identifies the cryptographic algorithm used to secure the JWS ornullfor none.Overriding is only supported for the purpose of calling the super implementation and changing the return type, but nothing else.
-
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 ornullfor none. -
setJwkUrl
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 ornullfor none.Overriding is only supported for the purpose of calling the super implementation and changing the return type, but nothing else.
-
getJwk
Returns the JSON Web Key header parameter that is a public key that corresponds to the key used to digitally sign the JWS ornullfor none. -
setJwk
Sets the JSON Web Key header parameter that is a public key that corresponds to the key used to digitally sign the JWS ornullfor none.Overriding is only supported for the purpose of calling the super implementation and changing the return type, but nothing else.
-
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 ornullfor none. -
setKeyId
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 ornullfor none.Overriding is only supported for the purpose of calling the super implementation and changing the return type, but nothing else.
-
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 ornullfor none. -
setX509Url
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 ornullfor none.Overriding is only supported for the purpose of calling the super implementation and changing the return type, but nothing else.
-
getX509Thumbprint
Returns the X.509 certificate thumbprint header parameter that provides a base64url encoded SHA-1 thumbprint (a.k.a. digest) of the DER encoding of an X.509 certificate that can be used to match the certificate ornullfor none. -
setX509Thumbprint
Sets the X.509 certificate thumbprint header parameter that provides a base64url encoded SHA-1 thumbprint (a.k.a. digest) of the DER encoding of an X.509 certificate that can be used to match the certificate ornullfor none.Overriding is only supported for the purpose of calling the super implementation and changing the return type, but nothing else.
-
getX509Certificates
-
setX509Certificates
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 ornullfor none.Overriding is only supported for the purpose of calling the super implementation and changing the return type, but nothing else.
- Since:
- 1.19.1.
-
getCritical
-
setCritical
Sets the header parameter names that define extensions used in the JWS header that MUST be understood and processed ornullfor none.Overriding is only supported for the purpose of calling the super implementation and changing the return type, but nothing else.
- Since:
- 1.16
-
set
Description copied from class:GenericDataSets the given field value (may benull) for the given field name. Any existing value for the field will be overwritten. It may be more slightly more efficient thanGenericData.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.
- Overrides:
setin classJsonWebToken.Header
-
clone
Description copied from class:GenericDataMakes a "deep" clone of the generic data, in which the clone is completely independent of the original.- Overrides:
clonein classJsonWebToken.Header
-