com.google.api.client.auth.jsontoken
Class JsonWebToken

java.lang.Object
  extended by com.google.api.client.auth.jsontoken.JsonWebToken
Direct Known Subclasses:
JsonWebSignature

public class JsonWebToken
extends Object

JSON Web Token (JWT).

Implementation is not thread-safe.

Since:
1.7
Author:
Yaniv Inbar

Nested Class Summary
static class JsonWebToken.Header
          Header as specified in JWT Header.
static class JsonWebToken.Payload
          Payload as specified in Reserved Claim Names.
 
Constructor Summary
JsonWebToken(JsonWebToken.Header header, JsonWebToken.Payload payload)
           
 
Method Summary
 JsonWebToken.Header getHeader()
          Returns the header.
 JsonWebToken.Payload getPayload()
          Returns the payload.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JsonWebToken

public JsonWebToken(JsonWebToken.Header header,
                    JsonWebToken.Payload payload)
Parameters:
header - header
payload - payload
Method Detail

getHeader

public JsonWebToken.Header getHeader()
Returns the header.

Subclasses may override only to change the return type.


getPayload

public JsonWebToken.Payload getPayload()
Returns the payload.

Subclasses may override only to change the return type.



Copyright © 2011-2012 Google. All Rights Reserved.