Class ForgottenUsernameConsoleConfig.ForgottenUsernameBuilder
java.lang.Object
org.forgerock.openam.selfservice.config.beans.ForgottenUsernameConsoleConfig.ForgottenUsernameBuilder
- All Implemented Interfaces:
org.forgerock.openam.sm.config.ConsoleConfigBuilder<ForgottenUsernameConsoleConfig>
- Enclosing class:
- ForgottenUsernameConsoleConfig
@ConfigSource({"MailServer","selfService"})
public static final class ForgottenUsernameConsoleConfig.ForgottenUsernameBuilder
extends Object
Builder for
ForgottenUsernameConsoleConfig.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidsetCaptchaEnabled(boolean captchaEnabled) Sets whether captcha is enabled.voidsetConfigProviderClass(String configProviderClass) Sets the config provider class.voidsetEmailEnabled(boolean emailEnabled) Sets whether email is enabled.voidsetEnabled(boolean enabled) Sets whether the service is enabled.voidsetKbaEnabled(boolean kbaEnabled) Sets whether KBA is enabled.voidsetMessageTranslations(Map<Locale, String> messageTranslations) Sets the email body translations.voidsetMinimumAnswersToVerify(int minimumAnswersToVerify) Sets the minimum number of answers to be verified.voidsetShowUsernameEnabled(boolean showUsernameEnabled) Sets whether show username is enabled.voidsetSubjectTranslations(Map<Locale, String> subjectTranslations) Sets the email subject translations.voidsetTokenExpiry(long tokenExpiry) Sets the token expiry time.voidsetValidQueryAttributes(Set<String> validQueryAttributes) Sets the set of valid query attributes.
-
Constructor Details
-
ForgottenUsernameBuilder
public ForgottenUsernameBuilder()Constructs a new forgotten username builder.
-
-
Method Details
-
setEnabled
@ConfigAttribute("selfServiceForgottenUsernameEnabled") public void setEnabled(boolean enabled) Sets whether the service is enabled.- Parameters:
enabled- whether the service is enabled
-
setConfigProviderClass
@ConfigAttribute("selfServiceForgottenUsernameServiceConfigClass") public void setConfigProviderClass(String configProviderClass) Sets the config provider class.- Parameters:
configProviderClass- config provider class
-
setTokenExpiry
@ConfigAttribute("selfServiceForgottenUsernameTokenTTL") public void setTokenExpiry(long tokenExpiry) Sets the token expiry time.- Parameters:
tokenExpiry- token expiry time
-
setEmailEnabled
@ConfigAttribute("selfServiceForgottenUsernameEmailUsernameEnabled") public void setEmailEnabled(boolean emailEnabled) Sets whether email is enabled.- Parameters:
emailEnabled- whether email is enabled
-
setSubjectTranslations
@ConfigAttribute(value="selfServiceForgottenUsernameEmailSubject", transformer=org.forgerock.openam.selfservice.config.beans.LocaleMessageTransformer.class) public void setSubjectTranslations(Map<Locale, String> subjectTranslations) Sets the email subject translations.- Parameters:
subjectTranslations- email subject translations
-
setMessageTranslations
@ConfigAttribute(value="selfServiceForgottenUsernameEmailBody", transformer=org.forgerock.openam.selfservice.config.beans.LocaleMessageTransformer.class) public void setMessageTranslations(Map<Locale, String> messageTranslations) Sets the email body translations.- Parameters:
messageTranslations- email body translations
-
setCaptchaEnabled
@ConfigAttribute("selfServiceForgottenUsernameCaptchaEnabled") public void setCaptchaEnabled(boolean captchaEnabled) Sets whether captcha is enabled.- Parameters:
captchaEnabled- whether captcha is enabled
-
setKbaEnabled
@ConfigAttribute("selfServiceForgottenUsernameKbaEnabled") public void setKbaEnabled(boolean kbaEnabled) Sets whether KBA is enabled.- Parameters:
kbaEnabled- whether KBA is enabled
-
setMinimumAnswersToVerify
@ConfigAttribute("selfServiceMinimumAnswersToVerify") public void setMinimumAnswersToVerify(int minimumAnswersToVerify) Sets the minimum number of answers to be verified.- Parameters:
minimumAnswersToVerify- minimum number of answers to be verified
-
setShowUsernameEnabled
@ConfigAttribute("selfServiceForgottenUsernameShowUsernameEnabled") public void setShowUsernameEnabled(boolean showUsernameEnabled) Sets whether show username is enabled.- Parameters:
showUsernameEnabled- whether show username is enabled
-
setValidQueryAttributes
@ConfigAttribute("selfServiceValidQueryAttributes") public void setValidQueryAttributes(Set<String> validQueryAttributes) Sets the set of valid query attributes.- Parameters:
validQueryAttributes- valid query attributes
-