Class EmailAutoConfiguration.OAuth2Configuration

java.lang.Object
io.jmix.autoconfigure.email.EmailAutoConfiguration.OAuth2Configuration
Enclosing class:
EmailAutoConfiguration

@Configuration(proxyBeanMethods=false) @ConditionalOnBooleanProperty(name="jmix.email.oauth2.enabled") public static class EmailAutoConfiguration.OAuth2Configuration extends Object
  • Constructor Details

    • OAuth2Configuration

      public OAuth2Configuration()
  • Method Details

    • microsoftOAuth2TokenProvider

      @Bean("email_MicrosoftOAuth2TokenProvider") @ConditionalOnProperty(name="jmix.email.oauth2.provider", havingValue="microsoft") @ConditionalOnMissingBean(OAuth2TokenProvider.class) public OAuth2TokenProvider microsoftOAuth2TokenProvider(EmailerProperties emailerProperties, EmailRefreshTokenManager refreshTokenManager)
    • googleOAuth2TokenProvider

      @Bean("email_GoogleOAuth2TokenProvider") @ConditionalOnProperty(name="jmix.email.oauth2.provider", havingValue="google") @ConditionalOnMissingBean(OAuth2TokenProvider.class) public OAuth2TokenProvider googleOAuth2TokenProvider(EmailerProperties emailerProperties, EmailRefreshTokenManager refreshTokenManager)
    • javaMailSender

      @Bean("email_JavaMailSender") public org.springframework.mail.javamail.JavaMailSender javaMailSender(org.springframework.boot.autoconfigure.mail.MailProperties mailProperties, OAuth2TokenProvider tokenProvider, org.springframework.beans.factory.ObjectProvider<org.springframework.boot.ssl.SslBundles> sslBundles)
    • applyProperties

      protected void applyProperties(org.springframework.mail.javamail.JavaMailSenderImpl sender, org.springframework.boot.autoconfigure.mail.MailProperties properties, org.springframework.boot.ssl.SslBundles sslBundles)
    • asProperties

      protected Properties asProperties(Map<String,String> source)