Class MicrosoftExchangeOnlineOAuth2MailAuthenticator


  • public class MicrosoftExchangeOnlineOAuth2MailAuthenticator
    extends org.apache.camel.component.mail.MailAuthenticator
    This Mail Authenticator is intended for users of Microsoft Exchange Online that use an Azure Active Directory instance as Identity Provider and OAuth2 Client Credential Flow as Authentication protocol.
    • Constructor Detail

      • MicrosoftExchangeOnlineOAuth2MailAuthenticator

        public MicrosoftExchangeOnlineOAuth2MailAuthenticator​(String tenantId,
                                                              String clientId,
                                                              String clientSecret,
                                                              String user)
      • MicrosoftExchangeOnlineOAuth2MailAuthenticator

        public MicrosoftExchangeOnlineOAuth2MailAuthenticator​(String tenantId,
                                                              String clientId,
                                                              String clientSecret,
                                                              String user,
                                                              Boolean skipCache)
      • MicrosoftExchangeOnlineOAuth2MailAuthenticator

        public MicrosoftExchangeOnlineOAuth2MailAuthenticator​(String tenantId,
                                                              String clientId,
                                                              String clientSecret,
                                                              String user,
                                                              Boolean skipCache,
                                                              Set<String> scopes)
      • MicrosoftExchangeOnlineOAuth2MailAuthenticator

        public MicrosoftExchangeOnlineOAuth2MailAuthenticator​(String tenantId,
                                                              String clientId,
                                                              String clientSecret,
                                                              String user,
                                                              com.microsoft.aad.msal4j.ClientCredentialParameters clientCredentialParameters)
      • MicrosoftExchangeOnlineOAuth2MailAuthenticator

        public MicrosoftExchangeOnlineOAuth2MailAuthenticator​(String user,
                                                              com.microsoft.aad.msal4j.IConfidentialClientApplication confidentialClientApplication,
                                                              com.microsoft.aad.msal4j.ClientCredentialParameters clientCredentialParameters)
    • Method Detail

      • getPasswordAuthentication

        public javax.mail.PasswordAuthentication getPasswordAuthentication()
        Overrides:
        getPasswordAuthentication in class org.apache.camel.component.mail.MailAuthenticator