Package org.keycloak.email
Interface EmailTemplateProvider
- All Superinterfaces:
Provider
- All Known Implementing Classes:
FreeMarkerEmailTemplateProvider
- Author:
- Stian Thorgersen
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoidSend formatted emailvoidsend(String subjectFormatKey, List<Object> subjectAttributes, String bodyTemplate, Map<String, Object> bodyAttributes) Send formatted emailvoidsendConfirmIdentityBrokerLink(String link, long expirationInMinutes) Send to confirm that user wants to link his account with identity broker linkvoidsendEmailUpdateConfirmation(String link, long expirationInMinutes, String address) voidvoidsendExecuteActions(String link, long expirationInMinutes) Change password email requested by adminvoidsendOrgInviteEmail(OrganizationModel organization, String link, long expirationInMinutes) voidsendPasswordReset(String link, long expirationInMinutes) Reset password sent from forgot password link on loginvoidsendSmtpTestEmail(Map<String, String> config, UserModel user) Test SMTP connection with current logged in uservoidsendVerifyEmail(String link, long expirationInMinutes) setAttribute(String name, Object value) setAuthenticationSession(AuthenticationSessionModel authenticationSession) setRealm(RealmModel realm)
-
Field Details
-
IDENTITY_PROVIDER_BROKER_CONTEXT
- See Also:
-
-
Method Details
-
setAuthenticationSession
-
setRealm
-
setUser
-
setAttribute
-
sendEvent
- Throws:
EmailException
-
sendPasswordReset
Reset password sent from forgot password link on login- Parameters:
link-expirationInMinutes-- Throws:
EmailException
-
sendSmtpTestEmail
Test SMTP connection with current logged in user- Parameters:
config- SMTP server configurationuser- SMTP recipient- Throws:
EmailException
-
sendConfirmIdentityBrokerLink
Send to confirm that user wants to link his account with identity broker link- Throws:
EmailException
-
sendExecuteActions
Change password email requested by admin- Parameters:
link-expirationInMinutes-- Throws:
EmailException
-
sendVerifyEmail
- Throws:
EmailException
-
sendOrgInviteEmail
void sendOrgInviteEmail(OrganizationModel organization, String link, long expirationInMinutes) throws EmailException - Throws:
EmailException
-
sendEmailUpdateConfirmation
void sendEmailUpdateConfirmation(String link, long expirationInMinutes, String address) throws EmailException - Throws:
EmailException
-
send
void send(String subjectFormatKey, String bodyTemplate, Map<String, Object> bodyAttributes) throws EmailExceptionSend formatted email- Parameters:
subjectFormatKey- message property that will be used to format email subjectbodyTemplate- freemarker template filebodyAttributes- attributes used to fill template- Throws:
EmailException
-
send
void send(String subjectFormatKey, List<Object> subjectAttributes, String bodyTemplate, Map<String, Object> bodyAttributes) throws EmailExceptionSend formatted email- Parameters:
subjectFormatKey- message property that will be used to format email subjectsubjectAttributes- attributes used to fill subject format messagebodyTemplate- freemarker template filebodyAttributes- attributes used to fill template- Throws:
EmailException
-