@FunctionalInterface
public interface HostBasedAuthenticator
Modifier and Type | Method and Description |
---|---|
boolean |
authenticate(ServerSession session,
java.lang.String username,
java.security.PublicKey clientHostKey,
java.lang.String clientHostName,
java.lang.String clientUsername,
java.util.List<java.security.cert.X509Certificate> certificates) |
boolean authenticate(ServerSession session, java.lang.String username, java.security.PublicKey clientHostKey, java.lang.String clientHostName, java.lang.String clientUsername, java.util.List<java.security.cert.X509Certificate> certificates)
session
- The ServerSession
through which the request was receivedusername
- The username attempting to loginclientHostKey
- The remote client's host PublicKey
clientHostName
- The reported remote client's host nameclientUsername
- The remote client usernamecertificates
- Associated X509Certificate
s - may be null
/emptytrue
whether authentication is allowed to proceed