IMultipleServicesTokenProvider

All Implemented Interfaces: com.aspose.ms.System.IDisposable

public interface IMultipleServicesTokenProvider extends System.IDisposable

Defines interface allowing to retrieve access token.

Methods

MethodDescription
getAccessToken(boolean ignoreExistingToken, String service)Gets oAuth access token.
getAccessToken(String service)Gets oAuth access token.

getAccessToken(boolean ignoreExistingToken, String service)

public abstract OAuthToken getAccessToken(boolean ignoreExistingToken, String service)

Gets oAuth access token.

Parameters:

ParameterTypeDescription
ignoreExistingTokenbooleanIf 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.
servicejava.lang.StringServices that this access token applies to.

Returns: OAuthToken - Returns oAuth access token

getAccessToken(String service)

public abstract 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.

Parameters:

ParameterTypeDescription
servicejava.lang.StringServices that this access token applies to.

Returns: OAuthToken - Returns oAuth access token