public final class PasswordResetCallback extends Object implements ExtendedCallback, Serializable
Constructor and Description |
---|
PasswordResetCallback(String prompt)
Construct a new instance.
|
Modifier and Type | Method and Description |
---|---|
void |
clearPassword()
Clear the stored password bytes by setting them to
' ' . |
char[] |
getPassword()
Get the new password.
|
String |
getPrompt()
Get the password reset prompt.
|
boolean |
isOptional()
Determine if this callback is optional.
|
boolean |
needsInformation()
Determine if this callback is requesting information.
|
void |
setPassword(char[] password)
Set the new password.
|
public PasswordResetCallback(String prompt)
prompt
- the password reset prompt (must not be null
or empty)public String getPrompt()
public char[] getPassword()
null
if it was not setpublic void setPassword(char[] password)
password
- the new passwordpublic void clearPassword()
' '
.public boolean isOptional()
ExtendedCallback
isOptional
in interface ExtendedCallback
true
if the callback is optional, false
if it is mandatorypublic boolean needsInformation()
ExtendedCallback
needsInformation
in interface ExtendedCallback
true
if the callback is requesting information, false
if it is only providing informationCopyright © 2020 JBoss by Red Hat. All rights reserved.