|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.security.auth.message.callback.PasswordValidationCallback
public class PasswordValidationCallback
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 Summary | |
---|---|
PasswordValidationCallback(javax.security.auth.Subject subject,
java.lang.String username,
char[] password)
Create a PasswordValidationCallback. |
Method Summary | |
---|---|
void |
clearPassword()
Clear the password. |
char[] |
getPassword()
Get the password. |
boolean |
getResult()
Get the authentication result. |
javax.security.auth.Subject |
getSubject()
Get the subject. |
java.lang.String |
getUsername()
Get the username. |
void |
setResult(boolean result)
Set the authentication result. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PasswordValidationCallback(javax.security.auth.Subject subject, java.lang.String username, char[] password)
subject
- The subject for authenticationusername
- The username to authenticatepassword
- tTe user's password, which may be null.Method Detail |
---|
public javax.security.auth.Subject getSubject()
public java.lang.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()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 2009, 2010, Oracle Corporation and/or its affiliates. All Rights Reserved. Use is subject to license terms.
Generated on 4-June-2010 04:34