Package org.jclouds.oauth.v2.domain
Class Token
- java.lang.Object
-
- org.jclouds.oauth.v2.domain.Token
-
public abstract class Token extends Object
The oauth token, obtained upon a successful token request and ready to embed in requests.
-
-
Constructor Summary
Constructors Constructor Description Token()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract String
accessToken()
The access token obtained from the OAuth server.static Token
create(String accessToken, String tokenType, long expiresIn)
abstract long
expiresIn()
In how many seconds this token expires.abstract String
tokenType()
The type of the token, e.g.,Bearer
.
-