javax.security.auth.message.callback
public class: PasswordValidationCallback [javadoc |
source]
java.lang.Object
javax.security.auth.message.callback.PasswordValidationCallback
All Implemented Interfaces:
Callback
Callback for PasswordValidation.
Constructor: |
public PasswordValidationCallback(Subject subject,
String username,
char[] password) {
this.subject = subject;
this.username = username;
this.password = password;
}
Create a new PasswordValidationCallback. Parameters:
username - the username to authenticate
password - the user�s password, which may be null.
|
Methods from java.lang.Object: |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method from javax.security.auth.message.callback.PasswordValidationCallback Detail: |
public void clearPassword() {
this.password = null;
}
|
public char[] getPassword() {
return this.password;
}
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 boolean getResult() {
return this.resultOfAuthentication;
}
Get the authentication result. |
public Subject getSubject() {
return this.subject;
}
|
public String getUsername() {
return this.username;
}
|
public void setResult(boolean result) {
this.resultOfAuthentication = result;
}
Set the authentication result. |