Package | Description |
---|---|
com.google.api.client.json.webtoken |
Modifier and Type | Method and Description |
---|---|
JsonWebSignature.Header |
JsonWebSignature.Header.clone() |
JsonWebSignature.Header |
JsonWebSignature.getHeader() |
JsonWebSignature.Header |
JsonWebSignature.Header.set(String fieldName,
Object value) |
JsonWebSignature.Header |
JsonWebSignature.Header.setAlgorithm(String algorithm)
Sets the algorithm header parameter that identifies the cryptographic algorithm used to
secure the JWS or
null for none. |
JsonWebSignature.Header |
JsonWebSignature.Header.setCritical(List<String> critical)
Sets the header parameter names that define extensions used in the JWS header that MUST be
understood and processed or
null for none. |
JsonWebSignature.Header |
JsonWebSignature.Header.setJwk(String jwk)
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.Header |
JsonWebSignature.Header.setJwkUrl(String jwkUrl)
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.Header |
JsonWebSignature.Header.setKeyId(String keyId)
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.Header |
JsonWebSignature.Header.setType(String type) |
JsonWebSignature.Header |
JsonWebSignature.Header.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 or
null
for none. |
JsonWebSignature.Header |
JsonWebSignature.Header.setX509Thumbprint(String x509Thumbprint)
Sets the X.509 certificate thumbprint header parameter that provides a base64url encoded
SHA-1 thumbprint (a.k.a.
|
JsonWebSignature.Header |
JsonWebSignature.Header.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 or
null for none. |
Modifier and Type | Method and Description |
---|---|
Class<? extends JsonWebSignature.Header> |
JsonWebSignature.Parser.getHeaderClass()
Returns the header class to use for parsing.
|
Modifier and Type | Method and Description |
---|---|
static String |
JsonWebSignature.signUsingRsaSha256(PrivateKey privateKey,
JsonFactory jsonFactory,
JsonWebSignature.Header header,
JsonWebToken.Payload payload)
Signs a given JWS header and payload based on the given private key using RSA and SHA-256 as
described in JWS using
RSA SHA-256.
|
Modifier and Type | Method and Description |
---|---|
JsonWebSignature.Parser |
JsonWebSignature.Parser.setHeaderClass(Class<? extends JsonWebSignature.Header> headerClass)
Sets the header class to use for parsing.
|
Constructor and Description |
---|
JsonWebSignature(JsonWebSignature.Header header,
JsonWebToken.Payload payload,
byte[] signatureBytes,
byte[] signedContentBytes) |
Copyright © 2011–2022 Google. All rights reserved.