Package org.jivesoftware.openfire.sasl
Class VerifyPasswordCallback
java.lang.Object
org.jivesoftware.openfire.sasl.VerifyPasswordCallback
- All Implemented Interfaces:
Serializable,Callback
This callback issued by SaslServer to determine if a password supplied by a
client is verified.
Under most circumstances the PasswordCallback should be used instead, but its
use requires the underlying security services have access to the stored password
to perform a comparison.
The security service provider instantiates and passes a VerifyPasswordCallback to the
handle method of a CallbackHandler to verify password information.
- Author:
- Jay Kline
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidClear the retrieved password.char[]Get the retrieved password.booleanDetermines wether the password is verified.voidsetVerified(boolean verified) Indicate if this password is verified.
-
Constructor Details
-
VerifyPasswordCallback
public VerifyPasswordCallback(char[] password) Construct aVerifyPasswordCallback.- Parameters:
password- the password to verify.
-
-
Method Details
-
getPassword
public char[] getPassword()Get the retrieved password.- Returns:
- the retrieved password, which may be null.
-
clearPassword
public void clearPassword()Clear the retrieved password. -
setVerified
public void setVerified(boolean verified) Indicate if this password is verified.- Parameters:
verified- true if the password is verified; false otherwise
-
getVerified
public boolean getVerified()Determines wether the password is verified.- Returns:
- true if the password is verified; false otherwise
-