public abstract class GraphClient extends Object implements com.aspose.ms.System.IDisposable, Closeable
Provides access to MS Exchange Server (Office365) by using REST API.
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
|
static IGraphClient |
getClient(IMultipleServicesTokenProvider tokenProvider)
Initializes a new instance of the
GraphClient based class |
static IGraphClient |
getClient(IMultipleServicesTokenProvider tokenProvider,
String tenantId)
Initializes a new instance of the
GraphClient based class |
static IGraphClient |
getClient(ITokenProvider tokenProvider)
Initializes a new instance of the
GraphClient based class |
static IGraphClient |
getClient(ITokenProvider tokenProvider,
String tenantId)
Initializes a new instance of the
GraphClient based class |
IMultipleServicesTokenProvider |
getMultipleServicesTokenProvider()
Gets or sets an object allows to retrieve OAuth access token.
|
com.aspose.ms.System.Net.IWebProxy |
getProxy()
Gets or sets data to proxy access to Exchange server.
|
int |
getResource()
Gets or sets resource type.
|
String |
getResourceId()
Gets or sets resource id.
|
String |
getTenantId()
Gets or sets tenant identifier
|
int |
getTimeout()
Gets or sets the number of milliseconds to wait before the operation times out.
|
ITokenProvider |
getTokenProvider()
Gets or sets an object allows to retrieve OAuth access token.
|
void |
setMultipleServicesTokenProvider(IMultipleServicesTokenProvider value)
Gets or sets an object allows to retrieve OAuth access token.
|
void |
setProxy(com.aspose.ms.System.Net.IWebProxy value)
Gets or sets data to proxy access to Exchange server.
|
void |
setResource(int value)
Gets or sets resource type.
|
void |
setResourceId(String value)
Gets or sets resource id.
|
void |
setTenantId(String value)
Gets or sets tenant identifier
|
void |
setTimeout(int value)
Gets or sets the number of milliseconds to wait before the operation times out.
|
void |
setTokenProvider(ITokenProvider value)
Gets or sets an object allows to retrieve OAuth access token.
|
public static IGraphClient getClient(IMultipleServicesTokenProvider tokenProvider, String tenantId)
Initializes a new instance of the GraphClient
based class
tokenProvider
- Token provider allows to retrieve OAuth access tokentenantId
- 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.public static IGraphClient getClient(IMultipleServicesTokenProvider tokenProvider)
Initializes a new instance of the GraphClient
based class
tokenProvider
- Token provider allows to retrieve OAuth access tokenpublic static IGraphClient getClient(ITokenProvider tokenProvider, String tenantId)
Initializes a new instance of the GraphClient
based class
tokenProvider
- Token provider allows to retrieve OAuth access tokentenantId
- 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.public static IGraphClient getClient(ITokenProvider tokenProvider)
Initializes a new instance of the GraphClient
based class
tokenProvider
- Token provider allows to retrieve OAuth access tokenpublic com.aspose.ms.System.Net.IWebProxy getProxy()
Gets or sets data to proxy access to Exchange server.
public void setProxy(com.aspose.ms.System.Net.IWebProxy value)
Gets or sets data to proxy access to Exchange server.
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).
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).
public IMultipleServicesTokenProvider getMultipleServicesTokenProvider()
Gets or sets an object allows to retrieve OAuth access token.
public void setMultipleServicesTokenProvider(IMultipleServicesTokenProvider value)
Gets or sets an object allows to retrieve OAuth access token.
public ITokenProvider getTokenProvider()
Gets or sets an object allows to retrieve OAuth access token.
public void setTokenProvider(ITokenProvider value)
Gets or sets an object allows to retrieve OAuth access token.
public String getTenantId()
Gets or sets tenant identifier
public void setTenantId(String value)
Gets or sets tenant identifier
public String getResourceId()
Gets or sets resource id. For instance for users it may be user principal name (UPN) or user id
public void setResourceId(String value)
Gets or sets resource id. For instance for users it may be user principal name (UPN) or user id
public int getResource()
Gets or sets resource type.
public void setResource(int value)
Gets or sets resource type.
public void dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
dispose
in interface com.aspose.ms.System.IDisposable
public void close()
close
in interface Closeable
close
in interface AutoCloseable