public final class YfyAuthFinish extends Object
| Constructor and Description |
|---|
YfyAuthFinish() |
YfyAuthFinish(String accessToken,
String refreshToken,
long expiresIn,
String tokenType,
String scope) |
| Modifier and Type | Method and Description |
|---|---|
String |
getAccessToken()
Returns an access token that can be used to make Fangcloud API calls.
|
long |
getExpiresIn()
Returns the expire time which access token is valid in this time
|
String |
getRefreshToken()
Returns refresh token that can be used to refresh access token and itself.Usually
use when access token is expired.
|
String |
getScope()
authorization scope, only "all" now
|
String |
getTokenType()
token type, must be "bearer" now
|
void |
setAccessToken(String accessToken) |
void |
setExpiresIn(long expiresIn) |
void |
setRefreshToken(String refreshToken) |
void |
setScope(String scope) |
void |
setTokenType(String tokenType) |
public String getAccessToken()
YfyClient constructor.public void setAccessToken(String accessToken)
public String getRefreshToken()
YfyClient constructor.public void setRefreshToken(String refreshToken)
public long getExpiresIn()
public void setExpiresIn(long expiresIn)
public String getTokenType()
public void setTokenType(String tokenType)
public String getScope()
public void setScope(String scope)
Copyright © 2018 YiFangYun. All rights reserved.