Top Description Methods
org.apache.sshd.client.keyverifier

public Interface ServerKeyVerifier

Known Direct Implementers
org.apache.sshd.client.keyverifier.StaticServerKeyVerifier, org.apache.sshd.client.keyverifier.DelegatingServerKeyVerifier, org.apache.sshd.client.keyverifier.KnownHostsServerKeyVerifier, org.apache.sshd.client.keyverifier.RequiredServerKeyVerifier
Annotations
@FunctionalInterface
Imports
java.net.SocketAddress, java.security.PublicKey, org.apache.sshd.client.session.ClientSession

The ServerKeyVerifier is used on the client side to authenticate the key provided by the server.
Author
Apache MINA SSHD Project

Method Summary

Modifier and TypeMethod and Description
public boolean

Returns:

true if the key is accepted for the host
verifyServerKey
(ClientSession
the current ClientSession
clientSession
,
SocketAddress
the host's SocketAddress
remoteAddress
,
PublicKey
the presented server PublicKey
serverKey
)

Verify that the server key provided is really the one of the host.

Method Detail

verifyServerKeyback to summary
public boolean verifyServerKey(ClientSession clientSession, SocketAddress remoteAddress, PublicKey serverKey)

Verify that the server key provided is really the one of the host.

Parameters
clientSession:ClientSession

the current ClientSession

remoteAddress:SocketAddress

the host's SocketAddress

serverKey:PublicKey

the presented server PublicKey

Returns:boolean

true if the key is accepted for the host