hudson.plugins.ec2.ssh
Class HostKeyVerifierImpl

java.lang.Object
  extended by hudson.plugins.ec2.ssh.HostKeyVerifierImpl
All Implemented Interfaces:
com.trilead.ssh2.ServerHostKeyVerifier

public class HostKeyVerifierImpl
extends java.lang.Object
implements com.trilead.ssh2.ServerHostKeyVerifier

ServerHostKeyVerifier that makes sure that the host key fingerprint showed up in ConsoleOutput.getOutput().

Author:
Kohsuke Kawaguchi

Constructor Summary
HostKeyVerifierImpl(com.xerox.amazonws.ec2.ConsoleOutput console)
           
HostKeyVerifierImpl(java.lang.String console)
           
 
Method Summary
 boolean verifyServerHostKey(java.lang.String hostname, int port, java.lang.String serverHostKeyAlgorithm, byte[] serverHostKey)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HostKeyVerifierImpl

public HostKeyVerifierImpl(com.xerox.amazonws.ec2.ConsoleOutput console)

HostKeyVerifierImpl

public HostKeyVerifierImpl(java.lang.String console)
Method Detail

verifyServerHostKey

public boolean verifyServerHostKey(java.lang.String hostname,
                                   int port,
                                   java.lang.String serverHostKeyAlgorithm,
                                   byte[] serverHostKey)
                            throws java.lang.Exception
Specified by:
verifyServerHostKey in interface com.trilead.ssh2.ServerHostKeyVerifier
Throws:
java.lang.Exception


Copyright © 2010. All Rights Reserved.