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:
  • Constructor Details

    • VerifyPasswordCallback

      public VerifyPasswordCallback(char[] password)
      Construct a VerifyPasswordCallback.
      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