public interface AuthenticationProvider
Implement this interface to customize the authentication of users logging into your server. To install your provider you must configure the servers ConfigurationContext within the servers configure method.
This interface has been updated to include session id in all method calls to make it more consistent.
Modifier and Type | Method and Description |
---|---|
boolean |
changePassword(Connection<SshServerContext> con,
String username,
String oldpassword,
String newpassword)
Deprecated.
Use new PasswordAuthenticationProvider mechanism to replace use of AuthenticationProvider.
|
void |
endSession(Connection<SshServerContext> con)
Deprecated.
Use EVENT_DISCONNECTED event instead
|
String |
getGroup(Connection<SshServerContext> con)
Deprecated.
use new AbstractFileSystem instead of VirtualFileSystem.
|
String |
getHomeDirectory(Connection<SshServerContext> con)
Deprecated.
use new AbstractFileSystem instead of VirtualFileSystem.
|
void |
startSession(Connection<SshServerContext> con)
Deprecated.
Use EVENT_AUTHENTICATION_COMPLETE event instead.
|
boolean |
verifyPassword(Connection<SshServerContext> con,
String username,
String password,
SocketAddress ipAddress)
Deprecated.
Use new PasswordAuthenticationProvider mechanism to replace use of AuthenticationProvider.
|
boolean verifyPassword(Connection<SshServerContext> con, String username, String password, SocketAddress ipAddress) throws PasswordChangeException
con
- username
- password
- ipAddress
- PasswordChangeException
- throw this exception if the users password requires a changing.String getGroup(Connection<SshServerContext> con)
con
- String getHomeDirectory(Connection<SshServerContext> con)
con
- boolean changePassword(Connection<SshServerContext> con, String username, String oldpassword, String newpassword)
con
- username
- oldpassword
- newpassword
- void startSession(Connection<SshServerContext> con)
void endSession(Connection<SshServerContext> con)
con
- Copyright © 2016. All rights reserved.