com.google.api.client.auth.jsontoken
Class JsonWebSignature.Header

java.lang.Object
  extended by java.util.AbstractMap<String,Object>
      extended by com.google.api.client.util.GenericData
          extended by com.google.api.client.json.GenericJson
              extended by com.google.api.client.auth.jsontoken.JsonWebToken.Header
                  extended by com.google.api.client.auth.jsontoken.JsonWebSignature.Header
All Implemented Interfaces:
Cloneable, Map<String,Object>
Enclosing class:
JsonWebSignature

public static class JsonWebSignature.Header
extends JsonWebToken.Header

Header as specified in Reserved Header Parameter Names.


Nested Class Summary
 
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
 
Nested classes/interfaces inherited from interface java.util.Map
Map.Entry<K,V>
 
Constructor Summary
JsonWebSignature.Header()
           
 
Method Summary
 String getAlgorithm()
          Returns the algorithm header parameter that identifies the cryptographic algorithm used to secure 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 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.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 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 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 setType(String type)
          Sets the type header parameter used to declare structural information about the JWT or null for none.
 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 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.
 
Methods inherited from class com.google.api.client.auth.jsontoken.JsonWebToken.Header
getType
 
Methods inherited from class com.google.api.client.json.GenericJson
clone, getFactory, setFactory, toPrettyString, toString
 
Methods inherited from class com.google.api.client.util.GenericData
entrySet, get, getUnknownKeys, put, putAll, remove, set, setUnknownKeys
 
Methods inherited from class java.util.AbstractMap
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, values
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JsonWebSignature.Header

public JsonWebSignature.Header()
Method Detail

setType

public JsonWebSignature.Header setType(String type)
Description copied from class: JsonWebToken.Header
Sets the type header parameter used to declare structural information about the JWT or null for none.

Overrides:
setType in class JsonWebToken.Header

getAlgorithm

public final String getAlgorithm()
Returns the algorithm header parameter that identifies the cryptographic algorithm used to secure the JWS or null for none.


setAlgorithm

public JsonWebSignature.Header setAlgorithm(String algorithm)
Sets the algorithm header parameter that identifies the cryptographic algorithm used to secure the JWS or null for none.


getJwkUrl

public 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.


setJwkUrl

public 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.


getKeyId

public 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.


setKeyId

public 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.


getX509Url

public 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.


setX509Url

public 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.


getX509Thumbprint

public String 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 or null for none.


setX509Thumbprint

public JsonWebSignature.Header setX509Thumbprint(String x509Thumbprint)
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 or null for none.



Copyright © 2011-2012 Google. All Rights Reserved.