public static class ClientManager.AccMgrAuthTokenProvider extends java.lang.Object implements RestClient.AuthTokenProvider
AuthenticatorService
Constructor and Description |
---|
AccMgrAuthTokenProvider(ClientManager clientManager,
java.lang.String instanceUrl,
java.lang.String authToken,
java.lang.String refreshToken)
Constructor
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getInstanceUrl() |
long |
getLastRefreshTime() |
java.lang.String |
getNewAuthToken()
Fetch a new access token from the account manager.
|
java.lang.String |
getRefreshToken() |
public AccMgrAuthTokenProvider(ClientManager clientManager, java.lang.String instanceUrl, java.lang.String authToken, java.lang.String refreshToken)
clientManager
- refreshToken
- public java.lang.String getNewAuthToken()
getNewAuthToken
in interface RestClient.AuthTokenProvider
public java.lang.String getRefreshToken()
getRefreshToken
in interface RestClient.AuthTokenProvider
public long getLastRefreshTime()
getLastRefreshTime
in interface RestClient.AuthTokenProvider
public java.lang.String getInstanceUrl()
getInstanceUrl
in interface RestClient.AuthTokenProvider