public interface ITokenProvider
extends 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 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.Copyright (c) 2008-2024 Aspose Pty Ltd. All Rights Reserved.