org.opends.server.core
Class AuthenticatedUsers

java.lang.Object
  extended by org.opends.server.core.AuthenticatedUsers
All Implemented Interfaces:
ChangeNotificationListener

public class AuthenticatedUsers
extends java.lang.Object
implements ChangeNotificationListener

This class provides a data structure which maps an authenticated user DN to the set of client connections authenticated as that user. Note that a single client connection may be registered with two different user DNs if the client has different authentication and authorization identities.

This class also provides a mechanism for detecting changes to authenticated user entries and notifying the corresponding client connections so that they can update their cached versions.


Constructor Summary
AuthenticatedUsers()
          Creates a new instance of this authenticated users object.
 
Method Summary
 void handleAddOperation(PostResponseAddOperation addOperation, Entry entry)
          Performs any processing that may be required after an add operation.
 void handleDeleteOperation(PostResponseDeleteOperation deleteOperation, Entry entry)
          Performs any processing that may be required after a delete operation.
 void handleModifyDNOperation(PostResponseModifyDNOperation modifyDNOperation, Entry oldEntry, Entry newEntry)
          Performs any processing that may be required after a modify DN operation.
 void handleModifyOperation(PostResponseModifyOperation modifyOperation, Entry oldEntry, Entry newEntry)
          Performs any processing that may be required after a modify operation.
 void put(DN userDN, ClientConnection clientConnection)
          Registers the provided user DN and client connection with this object.
 void remove(DN userDN, ClientConnection clientConnection)
          Deregisters the provided user DN and client connection with this object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AuthenticatedUsers

public AuthenticatedUsers()
Creates a new instance of this authenticated users object.

Method Detail

put

public void put(DN userDN,
                ClientConnection clientConnection)
Registers the provided user DN and client connection with this object.

Parameters:
userDN - The DN of the user associated with the provided client connection.
clientConnection - The client connection over which the user is authenticated.

remove

public void remove(DN userDN,
                   ClientConnection clientConnection)
Deregisters the provided user DN and client connection with this object.

Parameters:
userDN - The DN of the user associated with the provided client connection.
clientConnection - The client connection over which the user is authenticated.

handleAddOperation

public void handleAddOperation(PostResponseAddOperation addOperation,
                               Entry entry)
Performs any processing that may be required after an add operation.

Specified by:
handleAddOperation in interface ChangeNotificationListener
Parameters:
addOperation - The add operation that was performed in the server.
entry - The entry that was added to the server.

handleDeleteOperation

public void handleDeleteOperation(PostResponseDeleteOperation deleteOperation,
                                  Entry entry)
Performs any processing that may be required after a delete operation.

Specified by:
handleDeleteOperation in interface ChangeNotificationListener
Parameters:
deleteOperation - The delete operation that was performed in the server.
entry - The entry that was removed from the server.

handleModifyOperation

public void handleModifyOperation(PostResponseModifyOperation modifyOperation,
                                  Entry oldEntry,
                                  Entry newEntry)
Performs any processing that may be required after a modify operation.

Specified by:
handleModifyOperation in interface ChangeNotificationListener
Parameters:
modifyOperation - The modify operation that was performed in the server.
oldEntry - The entry before it was updated.
newEntry - The entry after it was updated.

handleModifyDNOperation

public void handleModifyDNOperation(PostResponseModifyDNOperation modifyDNOperation,
                                    Entry oldEntry,
                                    Entry newEntry)
Performs any processing that may be required after a modify DN operation.

Specified by:
handleModifyDNOperation in interface ChangeNotificationListener
Parameters:
modifyDNOperation - The modify DN operation that was performed in the server.
oldEntry - The entry before it was updated.
newEntry - The entry after it was updated.