Class ValidatedPasswordCallback.Builder
java.lang.Object
org.forgerock.openam.authentication.callbacks.ValidatedPasswordCallback.Builder
- Enclosing class:
- ValidatedPasswordCallback
Builder for
ValidatedPasswordCallback
.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Build the callback.withEchoOn
(boolean echoOn) Set whether the password should be displayed as it is being typed.withPolicies
(JsonValue policies) Set the policies.withPrompt
(String prompt) Set the prompt.withValidateOnly
(boolean validateOnly) Set whether the callback should only be validated.
-
Method Details
-
withPrompt
Set the prompt.- Parameters:
prompt
- the prompt- Returns:
- this builder
-
withEchoOn
Set whether the password should be displayed as it is being typed.- Parameters:
echoOn
- whether the password should be displayed as it is being typed- Returns:
- this builder
-
withPolicies
Set the policies.- Parameters:
policies
- the policies- Returns:
- this builder
-
withValidateOnly
Set whether the callback should only be validated.- Parameters:
validateOnly
- whether the callback should only be validated- Returns:
- this builder
-
build
Build the callback.- Returns:
- the callback
-