Package org.openiam.email.service
Class MailSenderClient
- java.lang.Object
-
- org.openiam.email.service.MailSenderClient
-
@Service("mailSenderClient") public class MailSenderClient extends Object
Object containing mail server configuration- Author:
- suneet
-
-
Field Summary
Fields Modifier and Type Field Description protected ScriptIntegration
scriptRunner
-
Constructor Summary
Constructors Constructor Description MailSenderClient()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.microsoft.aad.msal4j.IAuthenticationResult
acquireToken(com.microsoft.aad.msal4j.ConfidentialClientApplication app, Set<String> scopes)
com.microsoft.aad.msal4j.ConfidentialClientApplication
createClientApplication()
com.microsoft.aad.msal4j.ConfidentialClientApplication
createClientApplicationCertificate()
String
generateAuthToken(String authMethod, String scope)
void
send(javax.mail.Message message)
void
send(Message msg)
-
-
-
Field Detail
-
scriptRunner
@Autowired @Qualifier("configurableGroovyScriptEngine") protected ScriptIntegration scriptRunner
-
-
Method Detail
-
send
public void send(Message msg) throws BasicDataServiceException
- Throws:
BasicDataServiceException
-
generateAuthToken
public String generateAuthToken(String authMethod, String scope) throws Exception
- Throws:
Exception
-
createClientApplication
public com.microsoft.aad.msal4j.ConfidentialClientApplication createClientApplication() throws MalformedURLException, BasicDataServiceException
-
createClientApplicationCertificate
public com.microsoft.aad.msal4j.ConfidentialClientApplication createClientApplicationCertificate() throws BasicDataServiceException
- Throws:
BasicDataServiceException
-
acquireToken
public com.microsoft.aad.msal4j.IAuthenticationResult acquireToken(com.microsoft.aad.msal4j.ConfidentialClientApplication app, Set<String> scopes) throws Exception
- Throws:
Exception
-
send
public void send(javax.mail.Message message)
-
-