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(java.lang.String fieldName,
java.lang.Object value) |
JsonWebSignature.Header |
JsonWebSignature.Header.setAlgorithm(java.lang.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(java.util.List<java.lang.String> critical)
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.Header |
JsonWebSignature.Header.setJwk(java.lang.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(java.lang.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(java.lang.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(java.lang.String type) |
JsonWebSignature.Header |
JsonWebSignature.Header.setX509Certificate(java.lang.String x509Certificate)
Deprecated.
|
JsonWebSignature.Header |
JsonWebSignature.Header.setX509Certificates(java.util.List<java.lang.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(java.lang.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(java.lang.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 |
---|---|
java.lang.Class<? extends JsonWebSignature.Header> |
JsonWebSignature.Parser.getHeaderClass()
Returns the header class to use for parsing.
|
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
JsonWebSignature.signUsingRsaSha256(java.security.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(java.lang.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-2018 Google. All Rights Reserved.