|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.elkoserver.server.gatekeeper.passwd.PasswdAuthorizer
public class PasswdAuthorizer
A simple implementation of the Authorizer interface for use with
the Elko Gatekeeper.
| Constructor Summary | |
|---|---|
PasswdAuthorizer()
Constructor. |
|
| Method Summary | |
|---|---|
void |
initialize(Gatekeeper gatekeeper)
Initialize the authorization service. |
void |
reserve(String protocol,
String context,
String id,
String name,
String password,
ReservationResultHandler handler)
Service a request to make a reservation. |
void |
setPassword(String id,
String oldPassword,
String newPassword,
SetPasswordResultHandler handler)
Service a request to change a user's password. |
void |
shutdown()
Shut down the authorization service. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PasswdAuthorizer()
initialize().
| Method Detail |
|---|
public void initialize(Gatekeeper gatekeeper)
initialize in interface Authorizergatekeeper - The Gatekeeper this object is providing authorization
services for.
public void reserve(String protocol,
String context,
String id,
String name,
String password,
ReservationResultHandler handler)
reserve in interface Authorizerprotocol - The protocol the reservation seeker wants to use.context - The context they wish to enter.id - The user who is asking for the reservation.name - Optional legible name for the user.password - Password tendered for entry, if relevent.handler - Object to receive results of reservation check, once
available.
public void setPassword(String id,
String oldPassword,
String newPassword,
SetPasswordResultHandler handler)
setPassword in interface Authorizerid - The user who is asking for this.oldPassword - Current password, to check for permission.newPassword - The new password.handler - Object to receive results, when done.public void shutdown()
shutdown in interface Authorizer
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||