Class PasswordEnterDialogController


  • public class PasswordEnterDialogController
    extends java.lang.Object
    A simple modal dialog for prompting the user to enter a password.

    The password is required to be non-empty; any other validation is left to the caller.

    The result will be empty when the user cancels the dialog. When the result is present, the caller is responsible for wiping the char[] after use.

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Optional<char[]> getResult()
      When the result is present, the caller is responsible for wiping the char[] after use!
      void show​(java.awt.Window parent, java.lang.String message)  
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • PasswordEnterDialogController

        public PasswordEnterDialogController()
    • Method Detail

      • show

        public void show​(java.awt.Window parent,
                         java.lang.String message)
      • getResult

        public java.util.Optional<char[]> getResult()
        When the result is present, the caller is responsible for wiping the char[] after use!