public class PasswdAuthorizer extends Object implements Authorizer
Authorizer
interface for use with
the Elko Gatekeeper.Constructor and Description |
---|
PasswdAuthorizer()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
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.
|
public PasswdAuthorizer()
initialize()
.public void initialize(Gatekeeper gatekeeper)
initialize
in interface Authorizer
gatekeeper
- 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 Authorizer
protocol
- 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 Authorizer
id
- 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
Copyright © 2017. All rights reserved.