public class PasswordValidationCallback extends Object implements Callback
Callback for PasswordValidation. This callback may be used by an authentication module to employ the password validation facilities of its containing runtime. This Callback would typically be called by a ServerAuthModule during validateRequest processing.
Constructor and Description |
---|
PasswordValidationCallback(Subject subject,
String username,
char[] password)
Create a PasswordValidationCallback.
|
Modifier and Type | Method and Description |
---|---|
void |
clearPassword()
Clear the password.
|
char[] |
getPassword()
Get the password.
|
boolean |
getResult()
Get the authentication result.
|
Subject |
getSubject()
Get the subject.
|
String |
getUsername()
Get the username.
|
void |
setResult(boolean result)
Set the authentication result.
|
public void clearPassword()
Clear the password.
public char[] getPassword()
Get the password.
Note that this method returns a reference to the password. If a clone of the array is created it is the caller's responsibility to zero out the password information after it is no longer needed.
public Subject getSubject()
Get the subject.
public boolean getResult()
Get the authentication result.
public String getUsername()
Get the username.
public void setResult(boolean result)
Set the authentication result.
result
- True if authentication succeeded, false otherwise.Copyright © 2017 JBoss by Red Hat. All rights reserved.