Package com.mucommander.commons.file

Examples of com.mucommander.commons.file.AuthException


            // Restore default cursor
            mainFrame.setCursor(Cursor.getDefaultCursor());

            if(e instanceof AuthException) {
              AuthException authException = (AuthException)e;
              // Retry (loop) if user provided new credentials, if not stop
              AuthDialog authDialog = popAuthDialog(authException.getURL(), true, authException.getMessage());
              newCredentialsMapping = authDialog.getCredentialsMapping();
              guestCredentialsSelected = authDialog.guestCredentialsSelected();

              if(newCredentialsMapping!=null) {
                // Invalidate the existing AbstractFile instance
View Full Code Here


            }
            // If an AuthException occurred, gets login credential from the user.
            catch(Exception e) {
                if(e instanceof AuthException) {
                    // Prompts the user for a login and password.
                    AuthException authException = (AuthException)e;
                    FileURL url = authException.getURL();
                    AuthDialog authDialog = new AuthDialog(WindowManager.getCurrentMainFrame(), url, true, authException.getMessage());
                    authDialog.showDialog();
                    newCredentialsMapping = authDialog.getCredentialsMapping();
                    if(newCredentialsMapping !=null) {
                        // Use the provided credentials
                        CredentialsManager.authenticate(url, newCredentialsMapping);
View Full Code Here

TOP

Related Classes of com.mucommander.commons.file.AuthException

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.