public interface IMultipleServicesTokenProvider
extends IDisposable
Defines interface allowing to retrieve access token.
| Modifier and Type | Method and Description |
|---|---|
OAuthToken |
getAccessToken(boolean ignoreExistingToken,
String service)
Gets oAuth access token.
|
OAuthToken |
getAccessToken(String service)
Gets oAuth access token.
|
OAuthToken getAccessToken(String service)
Gets oAuth access token. If token exists and its expiration date is not expired returns current token, otherwise requests new token from a server.
service - Services that this access token applies to.OAuthToken getAccessToken(boolean ignoreExistingToken, String service)
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.service - Services that this access token applies to.Copyright (c) 2008-2024 Aspose Pty Ltd. All Rights Reserved.