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 con,
String username,
String oldpassword,
String newpassword)
Deprecated.
Use new PasswordAuthenticationProvider mechanism to replace use of AuthenticationProvider.
|
void |
endSession(Connection con)
Deprecated.
Use EVENT_DISCONNECTED event instead
|
String |
getGroup(Connection con)
Deprecated.
use new AbstractFileSystem instead of VirtualFileSystem.
|
String |
getHomeDirectory(Connection con)
Deprecated.
use new AbstractFileSystem instead of VirtualFileSystem.
|
void |
startSession(Connection con)
Deprecated.
Use EVENT_AUTHENTICATION_COMPLETE event instead.
|
boolean |
verifyPassword(Connection con,
String username,
String password,
SocketAddress ipAddress)
Deprecated.
Use new PasswordAuthenticationProvider mechanism to replace use of AuthenticationProvider.
|
boolean verifyPassword(Connection 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 con)
con
- String getHomeDirectory(Connection con)
con
- boolean changePassword(Connection con, String username, String oldpassword, String newpassword)
con
- username
- oldpassword
- newpassword
- void startSession(Connection con)
void endSession(Connection con)
con
- Copyright © 2017. All rights reserved.