public interface Authenticator
| Modifier and Type | Method and Description |
|---|---|
boolean |
authenticate(String resource)
Authenticates a superuser connection for the server.
|
boolean |
authenticate(String agentName,
String password,
String resource)
Authenticates a CRISTAL agent.
|
void |
disconnect()
Close or expire the connection as the CRISTAL process shuts down.
|
Object |
getAuthObject()
Lookup and storage implementations that need to use user or superuser
authentication can retrieve it using this method.
|
boolean authenticate(String agentName, String password, String resource) throws InvalidDataException, ObjectNotFoundException
agentName - The username of the Agent to be authenticated. This must be
already present as an Agent in the CRISTAL directory.password - The Agent's passwordresource - The authentication resource/domain/realm of the agent.
Included so that domains may include CRISTAL users from
different realms. This parameter is passed into the connect()
method if required. May be null.ObjectNotFoundException - When the Agent doesn't existInvalidDataException - When authentication fails for another reasonboolean authenticate(String resource) throws InvalidDataException, ObjectNotFoundException
resource - The authentication resource/domain/realm of the agent.
Included so that domains may include CRISTAL users from
different realms. This parameter is passed into the connect()
method if required. May be null.ObjectNotFoundException - When the Agent doesn't existInvalidDataException - When authentication fails for another reasonObject getAuthObject()
void disconnect()
Copyright © 1997–2020 CRISTAL-iSE. All rights reserved.