Interface HostBasedAuthenticator

All Known Implementing Classes:
AcceptAllHostBasedAuthenticator, RejectAllHostBasedAuthenticator, StaticHostBasedAuthenticator
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 HostBasedAuthenticator
Invoked when "hostbased" authentication is used
Author:
Apache MINA SSHD Project
See Also:
  • Method Details

    • authenticate

      boolean authenticate(ServerSession session, String username, PublicKey clientHostKey, String clientHostName, String clientUsername, List<X509Certificate> certificates)
      Parameters:
      session - The ServerSession through which the request was received
      username - The username attempting to login
      clientHostKey - The remote client's host PublicKey
      clientHostName - The reported remote client's host name
      clientUsername - The remote client username
      certificates - Associated X509Certificates - may be null/empty
      Returns:
      true whether authentication is allowed to proceed