ITokenProvider
All Implemented Interfaces: com.aspose.ms.System.IDisposable
public interface ITokenProvider extends System.IDisposable
Defines interface allowing to retrieve access token.
Methods
Method | Description |
---|---|
getAccessToken() | Gets oAuth access token. |
getAccessToken(boolean ignoreExistingToken) | Gets oAuth access token. |
getAccessToken()
public abstract OAuthToken getAccessToken()
Gets oAuth access token. If token exists and its expiration date is not expired returns current token, otherwise requests new token from a server.
Returns: OAuthToken - Returns oAuth access token
getAccessToken(boolean ignoreExistingToken)
public abstract OAuthToken getAccessToken(boolean ignoreExistingToken)
Gets oAuth access token.
Parameters:
Parameter | Type | Description |
---|---|---|
ignoreExistingToken | boolean | If ignoreExistingToken is true, requests new token from a server. Otherwise behavior is depended on whether token exists or not. If token exists and its expiration date is not expired returns current token, otherwise requests new token from a server. |
Returns: OAuthToken - Returns oAuth access token