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

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


        String newMasterPassword = null;

        while ( true )
        {
            // We ask the user to reset his master password
            ResetPasswordDialog resetPasswordDialog = new ResetPasswordDialog( changeMasterPasswordButton.getShell(),
                "", null, null ); //$NON-NLS-1$

            if ( resetPasswordDialog.open() != ResetPasswordDialog.OK )
            {
                // The user cancelled the action
                return;
            }

            // Checking the password
            Exception checkPasswordException = null;
            try
            {
                if ( passwordsKeyStoreManager.checkMasterPassword( resetPasswordDialog.getCurrentPassword() ) )
                {
                    newMasterPassword = resetPasswordDialog.getNewPassword();
                    break;
                }
            }
            catch ( KeyStoreException e )
            {
View Full Code Here

TOP

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

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.