org.apache.sshd.client
Interface ServerKeyVerifier
- All Known Implementing Classes:
- AcceptAllServerKeyVerifier, DelegatingServerKeyVerifier, RequiredServerKeyVerifier
public interface ServerKeyVerifier
The ServerKeyVerifier
is used on the client side
to authenticate the key provided by the server.
- Author:
- Apache MINA SSHD Project
verifyServerKey
boolean verifyServerKey(ClientSession sshClientSession,
SocketAddress remoteAddress,
PublicKey serverKey)
- Verify that the server key provided is really the one of the host.
- Parameters:
sshClientSession
- the current sessionremoteAddress
- the hostserverKey
- the presented key
- Returns:
true
if the key is accepted for the host
Copyright © 2008-2012 Apache Software Foundation. All Rights Reserved.