Interface ModifiedServerKeyAcceptor

    • Method Detail

      • acceptModifiedServerKey

        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 - The ClientSession
        remoteAddress - The remote host address
        entry - The original KnownHostEntry whose key did not match
        expected - The expected server PublicKey
        actual - The presented server PublicKey
        Returns:
        true if accept the server key anyway
        Throws:
        Exception - if cannot process the request - equivalent to false return value