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:
IMAPImportService, Serialized Form
-
-
Constructor Summary
Constructors Constructor Description IMAPOutlookAuthenticator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetAuthToken(String tenantId, String clientId, String client_secret)Helper method to receive a Microsoft access Tokenjavax.mail.StoreopenMessageStore(org.imixs.workflow.ItemCollection sourceConfig, Properties sourceOptions)This method returns a MailStore object based on a given Configuration
-
-
-
Method Detail
-
openMessageStore
public javax.mail.Store openMessageStore(org.imixs.workflow.ItemCollection sourceConfig, Properties sourceOptions) throws javax.mail.MessagingExceptionThis method returns a MailStore object based on a given Configuration- Specified by:
openMessageStorein interfaceIMAPAuthenticator- Parameters:
sourceConfig-sourceOptions-- Returns:
- Throws:
NumberFormatExceptionjavax.mail.MessagingException
-
getAuthToken
public String getAuthToken(String tenantId, String clientId, String client_secret) throws IOException
Helper method to receive a Microsoft access Token- Returns:
- Throws:
IOExceptionClientProtocolException
-
-