|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jclouds.oauth.v2.domain.Token
public class Token
The oauth token, obtained upon a successful token request and ready to embed in requests.
| 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 |
|---|
@ConstructorProperties(value={"access_token","token_type","expires_in"})
protected Token(String accessToken,
String tokenType,
long expiresIn)
| Method Detail |
|---|
public static Token.Builder builder()
public Token.Builder toBuilder()
public String getAccessToken()
public String getTokenType()
public long getExpiresIn()
public boolean equals(Object obj)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic String toString()
toString in class Objectprotected com.google.common.base.Objects.ToStringHelper string()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||