org.jclouds.oauth.v2.domain
Class Token

java.lang.Object
  extended by org.jclouds.oauth.v2.domain.Token

public class Token
extends Object

The oauth token, obtained upon a successful token request and ready to embed in requests.

Author:
David Alves

Nested Class Summary
static class Token.Builder
           
 
Constructor Summary
protected Token(String accessToken, String tokenType, long expiresIn)
           
 
Method Summary
static Token.Builder builder()
           
 boolean equals(Object obj)
          
 String getAccessToken()
          The access token obtained from the OAuth server.
 long getExpiresIn()
          In how many seconds this token expires.
 String getTokenType()
          The type of the token, e.g., "Bearer"
 int hashCode()
          
protected  com.google.common.base.Objects.ToStringHelper string()
           
 Token.Builder toBuilder()
           
 String toString()
          
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Token

@ConstructorProperties(value={"access_token","token_type","expires_in"})
protected Token(String accessToken,
                                           String tokenType,
                                           long expiresIn)
Method Detail

builder

public static Token.Builder builder()

toBuilder

public Token.Builder toBuilder()

getAccessToken

public String getAccessToken()
The access token obtained from the OAuth server.


getTokenType

public String getTokenType()
The type of the token, e.g., "Bearer"


getExpiresIn

public long getExpiresIn()
In how many seconds this token expires.


equals

public boolean equals(Object obj)

Overrides:
equals in class Object

hashCode

public int hashCode()

Overrides:
hashCode in class Object

toString

public String toString()

Overrides:
toString in class Object

string

protected com.google.common.base.Objects.ToStringHelper string()


Copyright © 2009-2013 The Apache Software Foundation. All Rights Reserved.