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 HostBasedAuthenticatorInvoked when "hostbased" authentication is used- See Also:
- RFC 4252 - section 9
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanauthenticate(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)
-
-
-
Method Detail
-
authenticate
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)
- Parameters:
session- TheServerSessionthrough which the request was receivedusername- The username attempting to loginclientHostKey- The remote client's hostPublicKeyclientHostName- The reported remote client's host nameclientUsername- The remote client usernamecertificates- AssociatedX509Certificates - may benull/empty- Returns:
truewhether authentication is allowed to proceed
-
-