Class PasswordDialog

    • Constructor Detail

      • PasswordDialog

        public PasswordDialog​(java.lang.String title,
                              java.lang.String serverType,
                              java.lang.String serverName,
                              java.lang.String passPrompt,
                              java.lang.String namePrompt,
                              java.lang.String defaultUserID,
                              java.lang.String choicePrompt,
                              java.lang.String[] choices,
                              int defaultChoice,
                              boolean includeAnonymousOption)
        Construct a new PasswordDialog.
        Parameters:
        title - title of the dialog
        serverType - 'Server' or 'Key-store' designation
        serverName - name of server or keystore pathname
        passPrompt - password prompt to show in the dialog; may be null, in which case "Password:" is displayed next to the password field
        namePrompt - name prompt to show in the dialog, if null a name will not be prompted for.
        defaultUserID - default name when prompting for a name
        choicePrompt - namePrompt name prompt to show in the dialog, if null a name will not be prompted for.
        choices - array of choices to present if choicePrompt is not null
        defaultChoice - default choice index
        includeAnonymousOption -
      • PasswordDialog

        public PasswordDialog​(java.lang.String title,
                              java.lang.String serverType,
                              java.lang.String serverName,
                              java.lang.String passPrompt,
                              java.lang.String namePrompt,
                              java.lang.String defaultUserID)
        Construct a new PasswordDialog.
        Parameters:
        title - title of the dialog
        serverType - 'Server' or 'Key-store' designation
        serverName - name of server or keystore pathname
        passPrompt - password prompt to show in the dialog; may be null, in which case "Password:" is displayed next to the password field
        namePrompt - name prompt to show in the dialog, if null a name will not be prompted for.
        defaultUserID - default name when prompting for a name
      • PasswordDialog

        public PasswordDialog​(java.lang.String title,
                              java.lang.String serverType,
                              java.lang.String serverName,
                              java.lang.String passPrompt,
                              java.lang.String namePrompt,
                              java.lang.String defaultUserID,
                              boolean hasMessages)
        Construct a new PasswordDialog.
        Parameters:
        title - title of the dialog
        serverType - 'Server' or 'Key-store' designation
        serverName - name of server or keystore pathname
        passPrompt - password prompt to show in the dialog; may be null, in which case "Password:" is displayed next to the password field
        namePrompt - name prompt to show in the dialog, if null a name will not be prompted for.
        defaultUserID - default name when prompting for a name
        hasMessages - true if the client will set messages on this dialog. If true, the dialog's minimum size will be increased
    • Method Detail

      • setErrorText

        public void setErrorText​(java.lang.String text)
        Display error status
        Parameters:
        text -
      • getPassword

        public char[] getPassword()
        Return the password entered in the password field.
      • anonymousAccessRequested

        public boolean anonymousAccessRequested()
        Returns:
        true if anonymous access requested
      • getUserID

        public java.lang.String getUserID()
        Return the user ID entered in the password field
      • getChoice

        public int getChoice()
        Returns index of selected choice or -1 if no choice has been made
      • okWasPressed

        public boolean okWasPressed()
        Returns true if the OK button was pressed.
      • dispose

        public void dispose()