public class FreeMarkerEmailTemplateProvider extends Object implements EmailTemplateProvider
IDENTITY_PROVIDER_BROKER_CONTEXT
Constructor and Description |
---|
FreeMarkerEmailTemplateProvider(KeycloakSession session,
FreeMarkerUtil freeMarker) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
sendConfirmIdentityBrokerLink(String link,
long expirationInMinutes)
Send to confirm that user wants to link his account with identity broker link
|
void |
sendEvent(Event event) |
void |
sendExecuteActions(String link,
long expirationInMinutes)
Change password email requested by admin
|
void |
sendPasswordReset(String link,
long expirationInMinutes)
Reset password sent from forgot password link on login
|
void |
sendVerifyEmail(String link,
long expirationInMinutes) |
EmailTemplateProvider |
setAttribute(String name,
Object value) |
EmailTemplateProvider |
setRealm(RealmModel realm) |
EmailTemplateProvider |
setUser(UserModel user) |
public FreeMarkerEmailTemplateProvider(KeycloakSession session, FreeMarkerUtil freeMarker)
public EmailTemplateProvider setRealm(RealmModel realm)
setRealm
in interface EmailTemplateProvider
public EmailTemplateProvider setUser(UserModel user)
setUser
in interface EmailTemplateProvider
public EmailTemplateProvider setAttribute(String name, Object value)
setAttribute
in interface EmailTemplateProvider
public void sendEvent(Event event) throws EmailException
sendEvent
in interface EmailTemplateProvider
EmailException
public void sendPasswordReset(String link, long expirationInMinutes) throws EmailException
EmailTemplateProvider
sendPasswordReset
in interface EmailTemplateProvider
EmailException
public void sendConfirmIdentityBrokerLink(String link, long expirationInMinutes) throws EmailException
EmailTemplateProvider
sendConfirmIdentityBrokerLink
in interface EmailTemplateProvider
EmailException
public void sendExecuteActions(String link, long expirationInMinutes) throws EmailException
EmailTemplateProvider
sendExecuteActions
in interface EmailTemplateProvider
EmailException
public void sendVerifyEmail(String link, long expirationInMinutes) throws EmailException
sendVerifyEmail
in interface EmailTemplateProvider
EmailException
Copyright © 2016 JBoss by Red Hat. All rights reserved.