Package org.jivesoftware.openfire.sasl
Class VerifyPasswordCallback
- java.lang.Object
-
- org.jivesoftware.openfire.sasl.VerifyPasswordCallback
-
- All Implemented Interfaces:
Serializable
,Callback
public class VerifyPasswordCallback extends Object implements Callback, Serializable
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:
PasswordCallback
,CallbackHandler
, Serialized Form
-
-
Constructor Summary
Constructors Constructor Description VerifyPasswordCallback(char[] password)
Construct aVerifyPasswordCallback
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clearPassword()
Clear the retrieved password.char[]
getPassword()
Get the retrieved password.boolean
getVerified()
Determines wether the password is verified.void
setVerified(boolean verified)
Indicate if this password is verified.
-
-
-
Method Detail
-
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
-
-