public interface ITokenProvider
extends com.aspose.ms.System.IDisposable
Defines interface allowing to retrieve access token.
Modifier and Type | Method and Description |
---|---|
OAuthToken |
getAccessToken()
Gets oAuth access token.
|
OAuthToken |
getAccessToken(boolean ignoreExistingToken)
Gets oAuth access token.
|
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.
OAuthToken getAccessToken(boolean ignoreExistingToken)
Gets oAuth access token.
ignoreExistingToken
- If ignoreExistingToken is true, requests new token from a server. Otherwise behaviour 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.