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
|
Method Summary |
boolean |
verifyServerKey(ClientSession sshClientSession,
java.net.SocketAddress remoteAddress,
java.security.PublicKey serverKey)
Verify that the server key provided is really the one of the host. |
verifyServerKey
boolean verifyServerKey(ClientSession sshClientSession,
java.net.SocketAddress remoteAddress,
java.security.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 The Apache Software Foundation. All Rights Reserved.