@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 ClientSession
remoteAddress
- The remote host addressentry
- The original KnownHostEntry
whose key did not matchexpected
- The expected server PublicKey
actual
- The presented server PublicKey
true
if accept the server key anywayException
- if cannot process the request - equivalent to false
return valueCopyright © 2008–2022 The Apache Software Foundation. All rights reserved.