public interface ServerAuthenticationCallback
| Modifier and Type | Field and Description |
|---|---|
static String |
METHOD_HOSTBASED
The method name for host-based authentication.
|
static String |
METHOD_PASSWORD
The method name for password authentication.
|
static String |
METHOD_PUBLICKEY
The method name for public-key authentication.
|
| Modifier and Type | Method and Description |
|---|---|
AuthenticationResult |
authenticateWithNone(ServerConnection sc,
String username)
Typically, this will be called be the client to get the list of
authentication methods that can continue.
|
AuthenticationResult |
authenticateWithPassword(ServerConnection sc,
String username,
String password) |
AuthenticationResult |
authenticateWithPublicKey(ServerConnection sc,
String username,
String algorithm,
byte[] publickey,
byte[] signature)
NOTE: Not implemented yet.
|
String[] |
getRemainingAuthMethods(ServerConnection sc)
Return the authentication methods that are currently available to the client.
|
String |
initAuthentication(ServerConnection sc)
Called when the client enters authentication.
|
static final String METHOD_HOSTBASED
static final String METHOD_PUBLICKEY
static final String METHOD_PASSWORD
String initAuthentication(ServerConnection sc)
ServerConnection.sc - The corresponding ServerConnectionNULL in case no banner should be send.String[] getRemainingAuthMethods(ServerConnection sc)
sc - METHOD_HOSTBASED,
METHOD_PASSWORD,
METHOD_PUBLICKEYAuthenticationResult authenticateWithNone(ServerConnection sc, String username)
AuthenticationResult.FAILURE.sc - username - Name of the user that wants to log in with the "none" method.AuthenticationResult authenticateWithPassword(ServerConnection sc, String username, String password)
AuthenticationResult authenticateWithPublicKey(ServerConnection sc, String username, String algorithm, byte[] publickey, byte[] signature)
sc - username - algorithm - publickey - signature - Copyright © 2014. All Rights Reserved.