Package org.keycloak.email
Interface EmailTemplateProvider
- All Superinterfaces:
Provider
- All Known Implementing Classes:
FreeMarkerEmailTemplateProvider
- Author:
- Stian Thorgersen
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Send formatted emailvoid
send
(String subjectFormatKey, List<Object> subjectAttributes, String bodyTemplate, Map<String, Object> bodyAttributes) Send formatted emailvoid
sendConfirmIdentityBrokerLink
(String link, long expirationInMinutes) Send to confirm that user wants to link his account with identity broker linkvoid
sendEmailUpdateConfirmation
(String link, long expirationInMinutes, String address) void
void
sendExecuteActions
(String link, long expirationInMinutes) Change password email requested by adminvoid
sendOrgInviteEmail
(OrganizationModel organization, String link, long expirationInMinutes) void
sendPasswordReset
(String link, long expirationInMinutes) Reset password sent from forgot password link on loginvoid
sendSmtpTestEmail
(Map<String, String> config, UserModel user) Test SMTP connection with current logged in uservoid
sendVerifyEmail
(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
-