Class PasswordValidationCallback

  • All Implemented Interfaces:

    public class PasswordValidationCallback
    extends java.lang.Object
    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

      Constructor Description
      PasswordValidationCallback​( subject, java.lang.String username, char[] password)
      Create a PasswordValidationCallback.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void clearPassword​()
      Clear the password.
      char[] getPassword​()
      Get the password.
      boolean getResult​()
      Get the authentication result. 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

      • PasswordValidationCallback

        public PasswordValidationCallback​( subject,
                                          java.lang.String username,
                                          char[] password)
        Create a PasswordValidationCallback.
        subject - The subject for authentication
        username - The username to authenticate
        password - tTe user's password, which may be null.
    • Method Detail

      • getSubject

        public getSubject​()
        Get the subject.
        The subject.
      • getUsername

        public java.lang.String getUsername​()
        Get the username.
        The username.
      • getPassword

        public char[] getPassword​()
        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.

        The password, which may be null.
      • clearPassword

        public void clearPassword​()
        Clear the password.
      • setResult

        public void setResult​(boolean result)
        Set the authentication result.
        result - True if authentication succeeded, false otherwise
      • getResult

        public boolean getResult​()
        Get the authentication result.
        True if authentication succeeded, false otherwise