public interface Authenticator extends GenericProvider
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
authenticate(java.lang.String uid,
java.lang.String pwd)
Authenticate a User and return a session handle.
|
void |
changePassword(java.lang.Object sid,
java.lang.String pwd)
Change User's password.
|
java.lang.String |
getFullName(java.lang.Object sid)
Return the Full Name of the User.
|
java.lang.StringBuffer |
getInitializationScripts(java.lang.Object sid)
If the User has not been instantiated in the Mobile Server repository,
Mobile Server will call this method after authenticating the User to
retrieve the initialization scripts for the User.
|
java.lang.String |
getUserGUID(java.lang.Object sid)
Return the GUID (Globally Unique Id) of the User if there is one.
|
void |
logOff(java.lang.Object sid)
Log off the User from the back-end system.
|
destroy, initialize
java.lang.Object authenticate(java.lang.String uid, java.lang.String pwd) throws java.lang.SecurityException
uid
- User Id (or User Name)pwd
- User's password stringnull
otherwisejava.lang.SecurityException
java.lang.SecurityException
void changePassword(java.lang.Object sid, java.lang.String pwd) throws java.lang.SecurityException
sid
- Session handle returned by 'authenticate' method.pwd
- User's new passwordjava.lang.SecurityException
java.lang.SecurityException
java.lang.String getFullName(java.lang.Object sid)
sid
- Session handle returned by 'authenticate' method.java.lang.StringBuffer getInitializationScripts(java.lang.Object sid)
sid
- Session handle returned by 'authenticate' method.java.lang.SecurityException
java.lang.String getUserGUID(java.lang.Object sid)
null
sid
- Session handle returned by 'authenticate' method.void logOff(java.lang.Object sid) throws java.lang.SecurityException
sid
- Session handle returned by 'authenticate' method.java.lang.SecurityException
java.lang.SecurityException