Package org.imixs.archive.importer.mail
Class IMAPOutlookAuthenticator
java.lang.Object
org.imixs.archive.importer.mail.IMAPOutlookAuthenticator
- All Implemented Interfaces:
Serializable,IMAPAuthenticator
@Named
public class IMAPOutlookAuthenticator
extends Object
implements IMAPAuthenticator, Serializable
The IMAPOutlookAuthenticator authenticates against Microsoft Outlook using
OAUTH2.
This authenticator ignores the Source Server setting.
- Version:
- 1.0
- Author:
- rsoika
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAuthToken(String tenantId, String clientId, String client_secret) Helper method to receive a Microsoft access Tokenjakarta.mail.StoreopenMessageStore(org.imixs.workflow.ItemCollection sourceConfig, Properties sourceOptions) This method returns a MailStore object based on a given Configuration
-
Constructor Details
-
IMAPOutlookAuthenticator
public IMAPOutlookAuthenticator()
-
-
Method Details
-
openMessageStore
public jakarta.mail.Store openMessageStore(org.imixs.workflow.ItemCollection sourceConfig, Properties sourceOptions) throws jakarta.mail.MessagingException This method returns a MailStore object based on a given Configuration- Specified by:
openMessageStorein interfaceIMAPAuthenticator- Parameters:
sourceConfig-sourceOptions-- Returns:
- Throws:
NumberFormatExceptionjakarta.mail.MessagingExceptionorg.imixs.workflow.exceptions.PluginException
-
getAuthToken
public String getAuthToken(String tenantId, String clientId, String client_secret) throws IOException Helper method to receive a Microsoft access Token- Returns:
- Throws:
IOExceptionClientProtocolException
-