Package com.sshtools.common.authentication

Examples of com.sshtools.common.authentication.PasswordAuthenticationDialog


    protected int showAuthenticationPrompt(SshAuthenticationClient instance)
        throws IOException {
        instance.setUsername(getCurrentConnectionProfile().getUsername());

        if (instance instanceof PasswordAuthenticationClient) {
            PasswordAuthenticationDialog dialog = new PasswordAuthenticationDialog((Frame) SwingUtilities.getAncestorOfClass(
                        Frame.class, SshToolsApplicationClientPanel.this));
            instance.setAuthenticationPrompt(dialog);
            ((PasswordAuthenticationClient) instance).setPasswordChangePrompt(PasswordChange.getInstance());
            PasswordChange.getInstance().setParentComponent(SshToolsApplicationClientPanel.this);
        } else if (instance instanceof PublicKeyAuthenticationClient) {
View Full Code Here


    protected int showAuthenticationPrompt(SshAuthenticationClient instance)
        throws IOException {
        instance.setUsername(getCurrentConnectionProfile().getUsername());

        if (instance instanceof PasswordAuthenticationClient) {
            PasswordAuthenticationDialog dialog = new PasswordAuthenticationDialog((Frame) SwingUtilities.getAncestorOfClass(
                        Frame.class, SshToolsApplicationClientPanel.this));
            instance.setAuthenticationPrompt(dialog);
            ((PasswordAuthenticationClient) instance).setPasswordChangePrompt(PasswordChange.getInstance());
            PasswordChange.getInstance().setParentComponent(SshToolsApplicationClientPanel.this);
        } else if (instance instanceof PublicKeyAuthenticationClient) {
View Full Code Here

TOP

Related Classes of com.sshtools.common.authentication.PasswordAuthenticationDialog

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.