|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
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.
| Method Summary | |
|---|---|
boolean |
changePassword(Connection con,
java.lang.String username,
java.lang.String oldpassword,
java.lang.String newpassword)
Implement this method to change the users password |
void |
endSession(Connection con)
|
java.lang.String |
getGroup(Connection con)
Get the primary group for a user |
java.lang.String |
getHomeDirectory(Connection con)
Get a users home directory. |
void |
startSession(Connection con)
New methods |
boolean |
verifyPassword(Connection con,
java.lang.String username,
java.lang.String password,
java.net.SocketAddress ipAddress)
Implement this method to log the user into the system. |
| Method Detail |
|---|
boolean verifyPassword(Connection con,
java.lang.String username,
java.lang.String password,
java.net.SocketAddress ipAddress)
throws PasswordChangeException
sessionid - username - password - ipAddress -
PasswordChangeException - throw this exception if the users password requires a changing.java.lang.String getGroup(Connection con)
username -
java.lang.String getHomeDirectory(Connection con)
username -
boolean changePassword(Connection con,
java.lang.String username,
java.lang.String oldpassword,
java.lang.String newpassword)
throws PasswordChangeException
sessionid - username - oldpassword - newpassword -
PasswordChangeExceptionvoid startSession(Connection con)
void endSession(Connection con)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||