Class PasswordAuthenticationPanel

    • Field Detail

      • PASSWORD_VERIFIED_PROPERTY

        public static final java.lang.String PASSWORD_VERIFIED_PROPERTY
        The bound property of the password verification status.
    • Constructor Detail

      • PasswordAuthenticationPanel

        public PasswordAuthenticationPanel()
        Default constructor with a default vertical flow layout.
      • PasswordAuthenticationPanel

        public PasswordAuthenticationPanel​(Layout<?> layout)
        Layout constructor.
        Parameters:
        layout - The layout definition for the container.
        Throws:
        java.lang.NullPointerException - if the given layout is null.
    • Method Detail

      • isPasswordVerified

        public boolean isPasswordVerified()
        Returns:
        Whether password verification is required, resulting in a separate password verification text input.
      • setPasswordVerified

        public void setPasswordVerified​(boolean newPasswordVerified)
        Sets whether password verification is required This is a bound property of type Boolean. This method unconditionally clears the password verification control.
        Parameters:
        newPasswordVerified - Whether password verification is required, resulting in a separate password verification text input.
        See Also:
        PASSWORD_VERIFIED_PROPERTY
      • getUsername

        public java.lang.String getUsername()
        Returns:
        The current username entered, or null if there is no username entered.
      • setUsername

        public void setUsername​(java.lang.String username)
                         throws java.beans.PropertyVetoException
        Sets the username shown in the panel.
        Parameters:
        username - The username to show.
        Throws:
        java.beans.PropertyVetoException - if the provided value is not valid or the change has otherwise been vetoed.
      • getUsernameValidator

        public Validator<java.lang.String> getUsernameValidator()
        Returns:
        The validator for the username, or null if no validator is installed.
      • setUsernameValidator

        public void setUsernameValidator​(Validator<java.lang.String> newValidator)
        Sets the username validator.
        Parameters:
        newValidator - The validator for the username, or null if no validator should be used.
      • getPassword

        public char[] getPassword()
        Returns:
        The current password entered, or null if there is no password entered.
      • setPassword

        public void setPassword​(char[] password)
                         throws java.beans.PropertyVetoException
        Sets the password shown in the panel.
        Parameters:
        password - The password to show.
        Throws:
        java.beans.PropertyVetoException - if the provided value is not valid or the change has otherwise been vetoed.
      • getPasswordValidator

        public Validator<char[]> getPasswordValidator()
        Returns:
        The validator for the password, or null if no validator is installed.
      • setPasswordValidator

        public void setPasswordValidator​(Validator<char[]> newValidator)
        Sets the password validator.
        Parameters:
        newValidator - The validator for the password, or null if no validator should be used.
      • update

        protected void update()
        Description copied from class: AbstractComponent
        Updates the condition of the component based upon the state. This method is a convenience method for complex components that would like to perform wholesale updates any prototypes, enabled/disabled status, proxied actions, etc. This version does nothing.
        Overrides:
        update in class AbstractComponent
      • isPasswordMatch

        protected boolean isPasswordMatch()
        Returns:
        true if both entered passwords are identical.
      • clearValues

        public void clearValues()
        Clears the username and password values.