org.apache.sshd.client.keyverifier
Class DelegatingServerKeyVerifier

java.lang.Object
  extended by org.apache.sshd.client.keyverifier.DelegatingServerKeyVerifier
All Implemented Interfaces:
ServerKeyVerifier

public class DelegatingServerKeyVerifier
extends Object
implements ServerKeyVerifier


Field Summary
protected  org.slf4j.Logger log
           
 
Constructor Summary
DelegatingServerKeyVerifier()
           
 
Method Summary
 boolean verifyServerKey(ClientSession sshClientSession, SocketAddress remoteAddress, PublicKey serverKey)
          Verify that the server key provided is really the one of the host.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected final org.slf4j.Logger log
Constructor Detail

DelegatingServerKeyVerifier

public DelegatingServerKeyVerifier()
Method Detail

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 session
remoteAddress - the host
serverKey - the presented key
Returns:
true if the key is accepted for the host


Copyright © 2008-2012 Apache Software Foundation. All Rights Reserved.