} else if (instance instanceof PublicKeyAuthenticationClient) {
PublicKeyAuthenticationPrompt prompt = new PublicKeyAuthenticationPrompt(SshToolsApplicationClientPanel.this);
instance.setAuthenticationPrompt(prompt);
} else if (instance instanceof KBIAuthenticationClient) {
KBIAuthenticationClient kbi = new KBIAuthenticationClient();
((KBIAuthenticationClient) instance).setKBIRequestHandler(new KBIRequestHandlerDialog(
(Frame) SwingUtilities.getAncestorOfClass(Frame.class,
SshToolsApplicationClientPanel.this)));
}
return ssh.authenticate(instance);