Class PasswordEnterDialogController

java.lang.Object
org.omegat.gui.dialogs.PasswordEnterDialogController

public class PasswordEnterDialogController extends 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.

  • Constructor Details

    • PasswordEnterDialogController

      public PasswordEnterDialogController()
  • Method Details

    • show

      public void show(Window parent, String message)
    • getResult

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