public class PasswordValidationCallback extends Object implements Callback
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 Subject getSubject()
public String getUsername()
public char[] getPassword()
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 void clearPassword()
public void setResult(boolean result)
result
- True if authentication succeeded, false otherwisepublic boolean getResult()
Copyright © 1996-2013, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.