org.apache.sshd.client.keyverifier
Class DelegatingServerKeyVerifier
java.lang.Object
org.apache.sshd.client.keyverifier.DelegatingServerKeyVerifier
- All Implemented Interfaces:
- ServerKeyVerifier
public class DelegatingServerKeyVerifier
- extends Object
- implements ServerKeyVerifier
Field Summary |
protected org.slf4j.Logger |
log
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
log
protected final org.slf4j.Logger log
DelegatingServerKeyVerifier
public DelegatingServerKeyVerifier()
verifyServerKey
public boolean verifyServerKey(ClientSession sshClientSession,
SocketAddress remoteAddress,
PublicKey serverKey)
- Description copied from interface:
ServerKeyVerifier
- Verify that the server key provided is really the one of the host.
- Specified by:
verifyServerKey
in interface ServerKeyVerifier
- 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.