Interface ServerKeyVerifier

All Known Implementing Classes:
AcceptAllServerKeyVerifier, DefaultKnownHostsServerKeyVerifier, DelegatingServerKeyVerifier, KnownHostsServerKeyVerifier, RejectAllServerKeyVerifier, RequiredServerKeyVerifier, StaticServerKeyVerifier
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface ServerKeyVerifier
The ServerKeyVerifier is used on the client side to authenticate the key provided by the server.
Author:
Apache MINA SSHD Project
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    verifyServerKey(ClientSession clientSession, SocketAddress remoteAddress, PublicKey serverKey)
    Verify that the server key provided is really the one of the host.
  • Method Details

    • verifyServerKey

      boolean verifyServerKey(ClientSession clientSession, SocketAddress remoteAddress, PublicKey serverKey)
      Verify that the server key provided is really the one of the host.
      Parameters:
      clientSession - the current ClientSession
      remoteAddress - the host's SocketAddress
      serverKey - the presented server PublicKey
      Returns:
      true if the key is accepted for the host