Class Sha256Verifier

java.lang.Object
net.sf.basedb.opengrid.Sha256Verifier
All Implemented Interfaces:
net.schmizz.sshj.transport.verification.HostKeyVerifier

public class Sha256Verifier
extends Object
implements net.schmizz.sshj.transport.verification.HostKeyVerifier
Verify the connection to a remote host using SHA-256 hash of the servers public key.
Since:
1.1
Author:
nicklas
  • Field Details

    • fingerprint

      private final String fingerprint
  • Constructor Details

    • Sha256Verifier

      public Sha256Verifier​(String fingerprint)
  • Method Details

    • verify

      public boolean verify​(String hostname, int port, PublicKey key)
      Specified by:
      verify in interface net.schmizz.sshj.transport.verification.HostKeyVerifier
    • findExistingAlgorithms

      public List<String> findExistingAlgorithms​(String host, int port)
      Specified by:
      findExistingAlgorithms in interface net.schmizz.sshj.transport.verification.HostKeyVerifier