Class AuthenticatedUsers


public final class AuthenticatedUsers extends InternalDirectoryServerPlugin
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 Details

    • AuthenticatedUsers

      public AuthenticatedUsers(ServerContext serverContext)
      Creates a new instance of this authenticated users object.
      Parameters:
      serverContext - the server context
  • Method Details

    • 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.
    • get

      public Set<ClientConnection> get(Dn userDN)
      Retrieves the set of client connections authenticated as the specified user. This method is only intended for internal testing use and should not be called for any other purpose.
      Parameters:
      userDN - The DN of the user for which to retrieve the corresponding set of client connections.
      Returns:
      The set of client connections authenticated as the specified user, or null if there are none.
    • doPostResponse

      Description copied from class: DirectoryServerPlugin
      Performs any necessary processing that should be done after the Directory Server has completed all processing for a delete operation and has sent the response to the client.
      Overrides:
      doPostResponse in class DirectoryServerPlugin<PluginCfg>
      Parameters:
      op - The delete operation for which processing has completed and the response has been sent to the client.
      Returns:
      Information about the result of the plugin processing.
    • doPostResponse

      Description copied from class: DirectoryServerPlugin
      Performs any necessary processing that should be done after the Directory Server has completed all processing for a modify operation and has sent the response to the client.
      Overrides:
      doPostResponse in class DirectoryServerPlugin<PluginCfg>
      Parameters:
      op - The modify operation for which processing has completed and the response has been sent to the client.
      Returns:
      Information about the result of the plugin processing.
    • doPostResponse

      Description copied from class: DirectoryServerPlugin
      Performs any necessary processing that should be done after the Directory Server has completed all processing for a modify DN operation and has sent the response to the client.
      Overrides:
      doPostResponse in class DirectoryServerPlugin<PluginCfg>
      Parameters:
      op - The modifyDN operation for which processing has completed and the response has been sent to the client.
      Returns:
      Information about the result of the plugin processing.