Package org.apache.directory.studio.connection.ui.dialogs

Examples of org.apache.directory.studio.connection.ui.dialogs.SetupPasswordDialog


     * @throws KeyStoreException
     */
    private boolean enablePasswordsKeystore() throws KeyStoreException
    {
        // Asking the user for a password
        SetupPasswordDialog setupPasswordDialog = new SetupPasswordDialog(
            enableKeystoreCheckbox.getShell(),
            Messages.getString( "PasswordsKeystorePreferencePage.SetupMasterPassword" ), //$NON-NLS-1$
            Messages.getString( "PasswordsKeystorePreferencePage.PleaseEnterMasterPasswordToSecurePasswordsKeystore" ), //$NON-NLS-1$
            null );

        if ( setupPasswordDialog.open() == SetupPasswordDialog.OK )
        {
            // Getting the master password
            String masterPassword = setupPasswordDialog.getPassword();

            // Loading the keystore
            passwordsKeyStoreManager.load( masterPassword );

            // Storing each connection password in the keystore
View Full Code Here

TOP

Related Classes of org.apache.directory.studio.connection.ui.dialogs.SetupPasswordDialog

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.