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

public Class DelegatingServerKeyVerifier

extends AbstractLoggingBean
implements ServerKeyVerifier
Class Inheritance
All Implemented Interfaces
org.apache.sshd.client.keyverifier.ServerKeyVerifier
Imports
java.net.SocketAddress, java.security.PublicKey, java.util.Map, org.apache.sshd.client.session.ClientSession, org.apache.sshd.common.util.logging.AbstractLoggingBean

A ServerKeyVerifier that delegates verification to the instance found in the ClientSession metadata The verifier can be specified at the SshClient level, which may have connections to multiple hosts. This technique lets each connection have its own verifier instance.
Author
Apache MINA SSHD Project

Field Summary

Inherited from org.apache.sshd.common.util.logging.AbstractLoggingBean:
log

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public boolean
verifyServerKey(ClientSession
the current ClientSession
session
,
SocketAddress
the host's SocketAddress
remoteAddress
,
PublicKey
the presented server PublicKey
serverKey
)

Implements org.apache.sshd.client.keyverifier.ServerKeyVerifier.verifyServerKey.

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

Inherited from org.apache.sshd.common.util.logging.AbstractLoggingBean:
debugdebugdebugdebugdebugerrorerrorerrorerrorerrorgetSimplifiedLoggerinfoinfowarnwarnwarnwarnwarnwarnwarnwarn

Constructor Detail

DelegatingServerKeyVerifierback to summary
public DelegatingServerKeyVerifier()

Method Detail

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

Implements org.apache.sshd.client.keyverifier.ServerKeyVerifier.verifyServerKey.

Doc from org.apache.sshd.client.keyverifier.ServerKeyVerifier.verifyServerKey.

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

Parameters
session: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

Annotations
@Override