Class ForgottenUsernameConsoleConfig
java.lang.Object
org.forgerock.openam.selfservice.config.beans.ForgottenUsernameConsoleConfig
- All Implemented Interfaces:
SelfServiceConsoleConfig
Represents forgotten username console configuration.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptiongetAttributeAsSet(String key) Retrieves the underlying console attribute for the key.final StringRetrieves the underlying console attribute for the key.final StringGets the captcha secret key.final StringGets the captcha site key.final StringGets the captcha verification URL.final StringGets the email attribute name.final StringGets the encryption key pair alias.Gets the map of locales to email body text strings.intGet the minimum count of questions to verify.Gets the security questions.final StringGets the signing secret key alias.Gets the map of locales to subject strings.longGets the token expiry time in seconds.Get set of valid query attributes.booleanWhether the captcha stage is enabled.booleanWhether email verification is enabled.booleanWhether the service is enabled.booleanWhether the KBA stage is enabled.booleanWhether or the not the username should be displayed.
-
Method Details
-
getConfigProviderClass
-
isEnabled
public boolean isEnabled()Whether the service is enabled.- Returns:
- whether the service is enabled
-
isEmailEnabled
public boolean isEmailEnabled()Whether email verification is enabled.- Returns:
- whether email verification is enabled
-
getTokenExpiry
public long getTokenExpiry()Gets the token expiry time in seconds.- Returns:
- the token expiry time
-
isCaptchaEnabled
public boolean isCaptchaEnabled()Whether the captcha stage is enabled.- Returns:
- whether the captcha stage is enabled
-
isKbaEnabled
public boolean isKbaEnabled()Whether the KBA stage is enabled.- Returns:
- whether the KBA stage is enabled
-
getSubjectTranslations
Gets the map of locales to subject strings.- Returns:
- the map of locales to subject text strings.
-
getMessageTranslations
Gets the map of locales to email body text strings.- Returns:
- the map of locales to email body text strings.
-
getMinimumAnswersToVerify
public int getMinimumAnswersToVerify()Get the minimum count of questions to verify.- Returns:
- minimum count
-
isShowUsernameEnabled
public boolean isShowUsernameEnabled()Whether or the not the username should be displayed.- Returns:
- whether username should be shown
-
getValidQueryAttributes
Get set of valid query attributes.- Returns:
- valid query attributes
-
getEncryptionKeyPairAlias
Gets the encryption key pair alias.- Returns:
- the encryption key pair alias
-
getSigningSecretKeyAlias
Gets the signing secret key alias.- Returns:
- the signing secret key alias
-
getCaptchaSiteKey
Gets the captcha site key.- Returns:
- the captcha site key
-
getCaptchaSecretKey
Gets the captcha secret key.- Returns:
- the captcha secret key
-
getCaptchaVerificationUrl
Gets the captcha verification URL.- Returns:
- the captcha verification URL
-
getSecurityQuestions
Gets the security questions. Expected format:Map<id,Map<locale,question>>
- Returns:
- security questions
-
getEmailAttributeName
Gets the email attribute name.- Returns:
- the email attribute name
-
getAttributeAsString
Retrieves the underlying console attribute for the key.- Parameters:
key- console attribute key- Returns:
- corresponding string value
-
getAttributeAsSet
Retrieves the underlying console attribute for the key.- Parameters:
key- console attribute key- Returns:
- corresponding set value
-