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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
verifyServerKey
(org.apache.sshd.client.session.ClientSession clientSession, SocketAddress remoteAddress, PublicKey serverKey)
-
Constructor Details
-
ResourceKnownHostsServerKeyVerifier
-
-
Method Details
-
verifyServerKey
public boolean verifyServerKey(org.apache.sshd.client.session.ClientSession clientSession, SocketAddress remoteAddress, PublicKey serverKey) - Specified by:
verifyServerKey
in interfaceorg.apache.sshd.client.keyverifier.ServerKeyVerifier
-