Class ValidatedPasswordCallback
java.lang.Object
org.forgerock.openam.authentication.callbacks.AbstractValidatedCallback
org.forgerock.openam.authentication.callbacks.ValidatedPasswordCallback
- All Implemented Interfaces:
Serializable,Callback
@Supported
public class ValidatedPasswordCallback
extends org.forgerock.openam.authentication.callbacks.AbstractValidatedCallback
implements Serializable
Callback to collect a password and validate it using IDM policy.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Get a builder for constructing a new ValidatedPasswordCallback.voidClear the retrieved password.char[]Get the retrieved password.Get the prompt.booleanisEchoOn()Return whether the password should be displayed as it is being typed.voidsetPassword(char[] password) Set the retrieved password.
-
Method Details
-
getPrompt
Get the prompt.- Returns:
- the prompt.
-
isEchoOn
Return whether the password should be displayed as it is being typed.- Returns:
- the whether the password should be displayed as it is being typed.
-
setPassword
Set the retrieved password.This method makes a copy of the input password before storing it.
- Parameters:
password- the retrieved password, which may be null.- See Also:
-
getPassword
Get the retrieved password.This method returns a copy of the retrieved password.
- Returns:
- the retrieved password, which may be null.
- See Also:
-
clearPassword
Clear the retrieved password. -
builder
Get a builder for constructing a new ValidatedPasswordCallback.- Returns:
- a new builder
-