Class HostVerifier

  • All Implemented Interfaces:
    com.trilead.ssh2.ServerHostKeyVerifier

    public class HostVerifier
    extends Object
    implements com.trilead.ssh2.ServerHostKeyVerifier
    Author:
    Rajiv Mordani
    • Constructor Detail

      • HostVerifier

        public HostVerifier​(com.trilead.ssh2.KnownHosts knownHosts)
    • Method Detail

      • verifyServerHostKey

        public boolean verifyServerHostKey​(String hostName,
                                           int port,
                                           String serverHostKeyAlgorithm,
                                           byte[] serverHostKey)
                                    throws IOException
        Specified by:
        verifyServerHostKey in interface com.trilead.ssh2.ServerHostKeyVerifier
        Throws:
        IOException