Top Description Methods
org.apache.sshd.server.auth.hostbased

public Interface HostBasedAuthenticator

Known Direct Implementers
org.apache.sshd.server.auth.hostbased.StaticHostBasedAuthenticator
Annotations
@FunctionalInterface
Imports
java.security.PublicKey, java.security.cert.X509Certificate, java.util.List, org.apache.sshd.server.session.ServerSession

Invoked when "hostbased" authentication is used
Author
Apache MINA SSHD Project
See Also
RFC 4252 - section 9

Method Summary

Modifier and TypeMethod and Description
public boolean

Returns:

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

Method Detail

authenticateback to summary
public boolean authenticate(ServerSession session, String username, PublicKey clientHostKey, String clientHostName, String clientUsername, List<X509Certificate> certificates)
Parameters
session:ServerSession

The ServerSession through which the request was received

username:String

The username attempting to login

clientHostKey:PublicKey

The remote client's host PublicKey

clientHostName:String

The reported remote client's host name

clientUsername:String

The remote client username

certificates:List<X509Certificate>

Associated X509Certificates - may be null/empty

Returns:boolean

true whether authentication is allowed to proceed