Class ResourceKnownHostsServerKeyVerifier

java.lang.Object
org.springframework.integration.sftp.session.ResourceKnownHostsServerKeyVerifier
All Implemented Interfaces:
org.apache.sshd.client.keyverifier.ServerKeyVerifier

public class ResourceKnownHostsServerKeyVerifier extends Object implements org.apache.sshd.client.keyverifier.ServerKeyVerifier
A ServerKeyVerifier implementation for a Resource abstraction. The logic is similar to the KnownHostsServerKeyVerifier, but in read-only mode.
Since:
6.0
Author:
Artem Bilan
See Also:
  • KnownHostsServerKeyVerifier
  • Constructor Details

    • ResourceKnownHostsServerKeyVerifier

      public ResourceKnownHostsServerKeyVerifier(Resource knownHostsResource)
  • Method Details

    • verifyServerKey

      public boolean verifyServerKey(org.apache.sshd.client.session.ClientSession clientSession, SocketAddress remoteAddress, PublicKey serverKey)
      Specified by:
      verifyServerKey in interface org.apache.sshd.client.keyverifier.ServerKeyVerifier