@FunctionalInterface public interface ModifiedServerKeyAcceptor
| Modifier and Type | Method and Description |
|---|---|
boolean |
acceptModifiedServerKey(ClientSession clientSession,
SocketAddress remoteAddress,
KnownHostEntry entry,
PublicKey expected,
PublicKey actual)
Invoked when a matching known host key was found but it does not match
the presented one.
|
boolean acceptModifiedServerKey(ClientSession clientSession, SocketAddress remoteAddress, KnownHostEntry entry, PublicKey expected, PublicKey actual) throws Exception
clientSession - The ClientSessionremoteAddress - The remote host addressentry - The original KnownHostEntry whose key did not matchexpected - The expected server PublicKeyactual - The presented server PublicKeytrue if accept the server key anywayException - if cannot process the request - equivalent to false return valueCopyright © 2008–2020 The Apache Software Foundation. All rights reserved.