Package org.omegat.gui.dialogs
Class PasswordEnterDialogController
- java.lang.Object
-
- org.omegat.gui.dialogs.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.
-
-
Constructor Summary
Constructors Constructor Description PasswordEnterDialogController()
-
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 thechar[]
after use!void
show(java.awt.Window parent, java.lang.String message)
-