Class ValidatedUsernameCallback.Builder
java.lang.Object
org.forgerock.openam.authentication.callbacks.ValidatedUsernameCallback.Builder
- Enclosing class:
- ValidatedUsernameCallback
A builder for constructing
ValidatedUsernameCallback.-
Method Summary
Modifier and TypeMethodDescriptionbuild()Construct aValidatedUsernameCallbackbased on the builder's configuration.withPolicies(JsonValue policies) with the policies.withPrompt(String prompt) Set the prompt.withValidateOnly(boolean validateOnly) with the validateOnly flag.
-
Method Details
-
withPrompt
Set the prompt.- Parameters:
prompt- the prompt.- Returns:
- this builder.
-
withPolicies
with the policies.- Parameters:
policies- the policies.- Returns:
- this builder.
-
withValidateOnly
with the validateOnly flag.- Parameters:
validateOnly- the validateOnly flag.- Returns:
- this builder.
-
build
Construct aValidatedUsernameCallbackbased on the builder's configuration.- Returns:
- a new
ValidatedUsernameCallback.
-