Package org.keycloak.email
Class DefaultEmailSenderProvider
- java.lang.Object
- 
- org.keycloak.email.DefaultEmailSenderProvider
 
- 
- All Implemented Interfaces:
- EmailSenderProvider,- Provider
 
 public class DefaultEmailSenderProvider extends Object implements EmailSenderProvider - Author:
- Stian Thorgersen
 
- 
- 
Constructor SummaryConstructors Constructor Description DefaultEmailSenderProvider(KeycloakSession session)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()protected StringretrieveEmailAddress(UserModel user)voidsend(Map<String,String> config, String address, String subject, String textBody, String htmlBody)voidsend(Map<String,String> config, UserModel user, String subject, String textBody, String htmlBody)protected javax.mail.internet.InternetAddresstoInternetAddress(String email, String displayName)
 
- 
- 
- 
Constructor Detail- 
DefaultEmailSenderProviderpublic DefaultEmailSenderProvider(KeycloakSession session) 
 
- 
 - 
Method Detail- 
sendpublic void send(Map<String,String> config, UserModel user, String subject, String textBody, String htmlBody) throws EmailException - Specified by:
- sendin interface- EmailSenderProvider
- Throws:
- EmailException
 
 - 
sendpublic void send(Map<String,String> config, String address, String subject, String textBody, String htmlBody) throws EmailException - Specified by:
- sendin interface- EmailSenderProvider
- Throws:
- EmailException
 
 - 
toInternetAddressprotected javax.mail.internet.InternetAddress toInternetAddress(String email, String displayName) throws UnsupportedEncodingException, javax.mail.internet.AddressException, EmailException - Throws:
- UnsupportedEncodingException
- javax.mail.internet.AddressException
- EmailException
 
 
- 
 
-