com.aspose.email

Interfaces

Classes

Enums

Exceptions

com.aspose.email

Class GraphClient

  • All Implemented Interfaces:
    com.aspose.ms.System.IDisposable, Closeable, AutoCloseable


    public abstract class GraphClient
    extends Object
    implements com.aspose.ms.System.IDisposable, Closeable

    Provides access to MS Exchange Server (Office365) by using REST API.

    • Method Detail

      • getClient

        public static IGraphClient getClient(IMultipleServicesTokenProvider tokenProvider,
                             String tenantId)

        Initializes a new instance of the GraphClient based class

        Parameters:
        tokenProvider - Token provider allows to retrieve OAuth access token
        tenantId - A tenant is representation of an organization. It's a dedicated instance of Azure AD that an organization or app developer receives when the organization or app developer, creates a relationship with Microsoft like signing up for Azure, Microsoft Intune, or Microsoft 365.
        Returns:
        Returns IGraphClient object
      • getClient

        public static IGraphClient getClient(IMultipleServicesTokenProvider tokenProvider)

        Initializes a new instance of the GraphClient based class

        Parameters:
        tokenProvider - Token provider allows to retrieve OAuth access token
        Returns:
        Returns IGraphClient object
      • getClient

        public static IGraphClient getClient(ITokenProvider tokenProvider,
                             String tenantId)

        Initializes a new instance of the GraphClient based class

        Parameters:
        tokenProvider - Token provider allows to retrieve OAuth access token
        tenantId - A tenant is representation of an organization. It's a dedicated instance of Azure AD that an organization or app developer receives when the organization or app developer, creates a relationship with Microsoft like signing up for Azure, Microsoft Intune, or Microsoft 365.
        Returns:
        Returns IGraphClient object
      • getClient

        public static IGraphClient getClient(ITokenProvider tokenProvider)

        Initializes a new instance of the GraphClient based class

        Parameters:
        tokenProvider - Token provider allows to retrieve OAuth access token
        Returns:
        Returns IGraphClient object
      • getProxy

        public com.aspose.ms.System.Net.IWebProxy getProxy()

        Gets or sets data to proxy access to Exchange server.

      • setProxy

        public void setProxy(com.aspose.ms.System.Net.IWebProxy value)

        Gets or sets data to proxy access to Exchange server.

      • getTimeout

        public int getTimeout()

        Gets or sets the number of milliseconds to wait before the operation times out. The default value is 100,000 milliseconds (100 seconds).

      • setTimeout

        public void setTimeout(int value)

        Gets or sets the number of milliseconds to wait before the operation times out. The default value is 100,000 milliseconds (100 seconds).

      • getMultipleServicesTokenProvider

        public IMultipleServicesTokenProvider getMultipleServicesTokenProvider()

        Gets or sets an object allows to retrieve OAuth access token.

      • setMultipleServicesTokenProvider

        public void setMultipleServicesTokenProvider(IMultipleServicesTokenProvider value)

        Gets or sets an object allows to retrieve OAuth access token.

      • getTokenProvider

        public ITokenProvider getTokenProvider()

        Gets or sets an object allows to retrieve OAuth access token.

      • setTokenProvider

        public void setTokenProvider(ITokenProvider value)

        Gets or sets an object allows to retrieve OAuth access token.

      • getTenantId

        public String getTenantId()

        Gets or sets tenant identifier

      • setTenantId

        public void setTenantId(String value)

        Gets or sets tenant identifier

      • getResourceId

        public String getResourceId()

        Gets or sets resource id. For instance for users it may be user principal name (UPN) or user id

      • setResourceId

        public void setResourceId(String value)

        Gets or sets resource id. For instance for users it may be user principal name (UPN) or user id

      • getResource

        public int getResource()

        Gets or sets resource type.

      • setResource

        public void setResource(int value)

        Gets or sets resource type.

      • dispose

        public void dispose()

        Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

        Specified by:
        dispose in interface com.aspose.ms.System.IDisposable