Package com.webmethods.caf.common.auth
Class MailOauthUtil
java.lang.Object
com.webmethods.caf.common.auth.MailOauthUtil
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic String
createEmailMessage
(List<EmailAddress> toAddressList, String body, String contentType, String subject, From from) static String
createEmailMessage
(List<EmailAddress> toAddressList, List<EmailAddress> ccAddressList, List<EmailAddress> bccAddressList, String body, String contentType, String subject, From from) static String
getAccessTokenByClientCredentialGrant
(String tokenURL, String clientID, String clientSecret, String scope) static <T,
G> G sendCalendarScheduleRequest
(T value, String url, String accessToken, Class<G> respClass) static void
static <T> void
-
Field Details
-
CONTENT_TYPE_TEXT
- See Also:
-
CONTENT_TYPE_HTML
- See Also:
-
-
Constructor Details
-
MailOauthUtil
public MailOauthUtil()
-
-
Method Details
-
getAccessTokenByClientCredentialGrant
public static String getAccessTokenByClientCredentialGrant(String tokenURL, String clientID, String clientSecret, String scope) throws Exception - Throws:
Exception
-
createEmailMessage
public static String createEmailMessage(List<EmailAddress> toAddressList, String body, String contentType, String subject, From from) throws Exception - Throws:
Exception
-
createEmailMessage
public static String createEmailMessage(List<EmailAddress> toAddressList, List<EmailAddress> ccAddressList, List<EmailAddress> bccAddressList, String body, String contentType, String subject, From from) throws Exception - Throws:
Exception
-
sendEmail
- Throws:
Exception
-
sendCalendarScheduleRequest
public static <T,G> G sendCalendarScheduleRequest(T value, String url, String accessToken, Class<G> respClass) throws Exception - Throws:
Exception
-
sendEmail
- Throws:
Exception
-