com.aspose.email

Interfaces

Classes

Enums

Exceptions

com.aspose.email

Interface ITokenProvider

  • All Superinterfaces:
    com.aspose.ms.System.IDisposable
    All Known Implementing Classes:
    TokenProvider


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

    Defines interface allowing to retrieve access token.

    • Method Summary

      Methods 
      Modifier and Type Method and Description
      OAuthToken getAccessToken()
      Gets oAuth access token.
      OAuthToken getAccessToken(boolean ignoreExistingToken)
      Gets oAuth access token.
      • Methods inherited from interface com.aspose.ms.System.IDisposable

        dispose
    • Method Detail

      • getAccessToken

        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.

        Returns:
        Returns oAuth access token
      • getAccessToken

        OAuthToken getAccessToken(boolean ignoreExistingToken)

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

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