com.aspose.email

Interfaces

Classes

Enums

Exceptions

com.aspose.email

Interface IMultipleServicesTokenProvider

  • All Superinterfaces:
    com.aspose.ms.System.IDisposable


    public interface IMultipleServicesTokenProvider
    extends com.aspose.ms.System.IDisposable

    Defines interface allowing to retrieve access token.

    • Method Detail

      • getAccessToken

        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:
        service - Services that this access token applies to.
        Returns:
        Returns oAuth access token
      • getAccessToken

        OAuthToken getAccessToken(boolean ignoreExistingToken,
                                String service)

        Gets oAuth access token.

        Parameters:
        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.
        Returns:
        Returns oAuth access token

Copyright (c) 2008-2020 Aspose Pty Ltd. All Rights Reserved.