Package net.java.sip.communicator.util.swing

Examples of net.java.sip.communicator.util.swing.AuthenticationWindow


            errorMessage
                = GuiActivator.getResources().getI18NString(
                    "service.gui.AUTHENTICATION_FAILED");
        }

        AuthenticationWindow loginWindow = null;

        String userName = userCredentials.getUserName();
        char[] password = userCredentials.getPassword();
        ImageIcon icon
            = ImageLoader.getAuthenticationWindowIcon(protocolProvider);

        if (errorMessage == null)
            loginWindow = new AuthenticationWindow(
                userName,
                password,
                realm,
                isUserNameEditable,
                icon);
        else
            loginWindow = new AuthenticationWindow(
                userName,
                password,
                realm,
                isUserNameEditable,
                icon,
                errorMessage);

        loginWindow.setVisible(true);

        if (!loginWindow.isCanceled())
        {
            userCredentials.setUserName(loginWindow.getUserName());
            userCredentials.setPassword(loginWindow.getPassword());
            userCredentials.setPasswordPersistent(
                loginWindow.isRememberPassword());
        }
        else
        {
            userCredentials.setUserName(null);
            userCredentials = null;
View Full Code Here


            errorMessage
                = GuiActivator.getResources().getI18NString(
                    "service.gui.AUTHENTICATION_FAILED", new String[]{realm});
        }

        AuthenticationWindow loginWindow = null;

        String userName = userCredentials.getUserName();
        char[] password = userCredentials.getPassword();
        ImageIcon icon
            = ImageLoader.getAuthenticationWindowIcon(protocolProvider);

        if (errorMessage == null)
            loginWindow = new AuthenticationWindow(
                userName,
                password,
                realm,
                isUserNameEditable,
                icon);
        else
            loginWindow = new AuthenticationWindow(
                userName,
                password,
                realm,
                isUserNameEditable,
                icon,
                errorMessage);

        loginWindow.setVisible(true);

        if (!loginWindow.isCanceled())
        {
            userCredentials.setUserName(loginWindow.getUserName());
            userCredentials.setPassword(loginWindow.getPassword());
            userCredentials.setPasswordPersistent(
                loginWindow.isRememberPassword());
        }
        else
        {
            userCredentials.setUserName(null);
            userCredentials = null;
View Full Code Here

TOP

Related Classes of net.java.sip.communicator.util.swing.AuthenticationWindow

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.