Top Methods
org.apache.sshd.client.keyverifier

public Interface ModifiedServerKeyAcceptor

Known Direct Implementers
org.apache.sshd.client.keyverifier.KnownHostsServerKeyVerifier
Annotations
@FunctionalInterface
Imports
java.net.SocketAddress, java.security.PublicKey, org.apache.sshd.client.config.hosts.KnownHostEntry, org.apache.sshd.client.session.ClientSession

Author
Apache MINA SSHD Project

Method Summary

Modifier and TypeMethod and Description
public boolean

Returns:

true if accept the server key anyway
acceptModifiedServerKey
(ClientSession clientSession, SocketAddress
The remote host address
remoteAddress
,
KnownHostEntry
Any original KnownHostEntry whose key did not match
entry
,
PublicKey
Any expected server PublicKey
expected
,
PublicKey
The presented server PublicKey
actual
)

Invoked when a matching known host key was found but it does not match the presented one.

Method Detail

acceptModifiedServerKeyback to summary
public boolean acceptModifiedServerKey(ClientSession clientSession, SocketAddress remoteAddress, KnownHostEntry entry, PublicKey expected, PublicKey actual) throws Exception

Invoked when a matching known host key was found but it does not match the presented one.

Parameters
clientSession:ClientSession

The ClientSession

remoteAddress:SocketAddress

The remote host address

entry:KnownHostEntry

Any original KnownHostEntry whose key did not match

expected:PublicKey

Any expected server PublicKey

actual:PublicKey

The presented server PublicKey

Returns:boolean

true if accept the server key anyway

Exceptions
Exception:
if cannot process the request - equivalent to false return value