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

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


        PlatformUI.getWorkbench().getDisplay().syncExec( new Runnable()
        {
            public void run()
            {
                PasswordDialog dialog = new PasswordDialog(
                    PlatformUI.getWorkbench().getDisplay().getActiveShell(),
                    NLS.bind(
                        Messages.getString( "UIAuthHandler.EnterPasswordFor" ), new String[] { connectionParameter.getName() } ), //$NON-NLS-1$
                    NLS.bind(
                        Messages.getString( "UIAuthHandler.PleaseEnterPasswordOfUser" ), connectionParameter.getBindPrincipal() ), "" ); //$NON-NLS-1$//$NON-NLS-2$ //$NON-NLS-3$

                if ( dialog.open() == PasswordDialog.OK )
                {
                    password[0] = dialog.getPassword();
                }
            }
        } );

        if ( password[0] != null )
View Full Code Here


                {
                    // Getting the shell
                    Shell shell = PlatformUI.getWorkbench().getDisplay().getActiveShell();

                    // We ask the user for the keystore password
                    PasswordDialog passwordDialog = new PasswordDialog( shell, Messages
                        .getString( "PasswordsKeyStoreManagerUtils.VerifyMasterPassword" ), //$NON-NLS-1$
                        Messages.getString( "PasswordsKeyStoreManagerUtils.PleaseEnterMasterPassword" ), null ); //$NON-NLS-1$

                    if ( passwordDialog.open() == PasswordDialog.CANCEL )
                    {
                        // The user cancelled the action
                        keystoreLoaded[0] = false;
                        return;
                    }

                    // Getting the password
                    String masterPassword = passwordDialog.getPassword();

                    // Checking the password
                    Exception checkPasswordException = null;
                    try
                    {
View Full Code Here

            connectionsPasswordsBackup.clear();

            while ( true )
            {
                // We ask the user for the keystore password
                PasswordDialog passwordDialog = new PasswordDialog(
                    enableKeystoreCheckbox.getShell(),
                    Messages.getString( "PasswordsKeystorePreferencePage.VerifyMasterPassword" ), Messages.getString( "PasswordsKeystorePreferencePage.PleaseEnterYourMasterPassword" ), //$NON-NLS-1$ //$NON-NLS-2$
                    null );

                if ( passwordDialog.open() == PasswordDialog.CANCEL )
                {
                    // The user cancelled the action
                    return false;
                }

                // Getting the password
                String password = passwordDialog.getPassword();

                // Checking the password
                Exception checkPasswordException = null;
                try
                {
View Full Code Here

TOP

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

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.