|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.lightdev.app.trec.server.sam.SAMAuthorizer
public class SAMAuthorizer
SAMAuthorizer exposes methods login, logout and changeOwnPassword of a given Gatekeeper object as remote methods so that an XmlRpcServer can use the Authorizer as a handler for respective client requests.
| Field Summary | |
|---|---|
static String |
DEFAULT_NAME
default name this object is addressed as a TREC agent under |
static String |
METHOD_CHG_PW
name of change own password method |
static String |
METHOD_LOGIN
name of login method |
static String |
METHOD_LOGOUT
name of logout method |
static String |
RID_CHANGE_OWN_PASSWORD
|
| Constructor Summary | |
|---|---|
SAMAuthorizer(Gatekeeper gatekeeper)
constructor |
|
| Method Summary | |
|---|---|
boolean |
changeOwnPassword(String sid,
String oldPw,
String newPw)
change the password of the user logged in via a given session |
String |
login(String userId,
String pw)
log in a given user with a given password |
boolean |
logout(String sessionId)
log out the user with the given session id |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String DEFAULT_NAME
public static final String METHOD_LOGIN
public static final String METHOD_LOGOUT
public static final String METHOD_CHG_PW
public static final String RID_CHANGE_OWN_PASSWORD
| Constructor Detail |
|---|
public SAMAuthorizer(Gatekeeper gatekeeper)
gatekeeper - the gatekeeper to use for authentication| Method Detail |
|---|
public boolean logout(String sessionId)
sessionId - the session id string to log out
public String login(String userId,
String pw)
throws Exception
userId - the user idpw - the password
Exception
public boolean changeOwnPassword(String sid,
String oldPw,
String newPw)
throws Exception
sid - id of session the password is to be changed foroldPw - current password of usernewPw - new password to set
Exception - if something goes wrong, e.g. oldPW not matching, etc.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||