public final class TokenResponseEntity extends Object
| Modifier and Type | Method and Description |
|---|---|
static TokenResponseEntity |
factory(OAuthToken token,
OAuthToken refresh,
String state)
Create this entity from an OAuthToken.
|
static TokenResponseEntity |
factory(OAuthToken token,
String state)
Create this entity from an OAuthToken.
|
BigInteger |
getAccessToken()
Retrieve the access token.
|
Long |
getExpiresIn()
Get the expiration time, in seconds.
|
BigInteger |
getRefreshToken()
Get the refresh token.
|
String |
getScope()
Get the scope.
|
String |
getState()
Retrieve the state for the token response.
|
OAuthTokenType |
getTokenType()
Get the token type!
|
public static TokenResponseEntity factory(OAuthToken token, String state)
token - The token from which we're constructing this response.state - A request provided state string, passed back to the
client verbatim.public static TokenResponseEntity factory(OAuthToken token, OAuthToken refresh, String state)
token - The token from which we're constructing this response.refresh - The refresh token for this response.state - A request provided state string, passed back to the
client verbatim.public BigInteger getAccessToken()
public OAuthTokenType getTokenType()
public Long getExpiresIn()
public BigInteger getRefreshToken()
public String getScope()
public String getState()
Copyright © 2018 krotscheck.net. All rights reserved.