| | |
| | | import org.opends.server.types.operation.PostResponseModifyOperation; |
| | | import org.opends.server.types.operation.PostResponseModifyDNOperation; |
| | | |
| | | import static org.opends.server.loggers.Debug.*; |
| | | import static org.opends.server.messages.CoreMessages.*; |
| | | import static org.opends.server.messages.MessageHandler.*; |
| | | |
| | |
| | | public class AuthenticatedUsers |
| | | implements ChangeNotificationListener |
| | | { |
| | | /** |
| | | * The fully-qualified name of this class for debugging purposes. |
| | | */ |
| | | private static final String CLASS_NAME = |
| | | "org.opends.server.core.AuthenticatedUsers"; |
| | | |
| | | |
| | | |
| | |
| | | */ |
| | | public AuthenticatedUsers() |
| | | { |
| | | assert debugConstructor(CLASS_NAME); |
| | | |
| | | userMap = new ConcurrentHashMap<DN,CopyOnWriteArraySet<ClientConnection>>(); |
| | | |
| | |
| | | */ |
| | | public synchronized void put(DN userDN, ClientConnection clientConnection) |
| | | { |
| | | assert debugEnter(CLASS_NAME, "put", String.valueOf(userDN), |
| | | String.valueOf(clientConnection)); |
| | | |
| | | CopyOnWriteArraySet<ClientConnection> connectionSet = userMap.get(userDN); |
| | | if (connectionSet == null) |
| | |
| | | */ |
| | | public synchronized void remove(DN userDN, ClientConnection clientConnection) |
| | | { |
| | | assert debugEnter(CLASS_NAME, "put", String.valueOf(userDN), |
| | | String.valueOf(clientConnection)); |
| | | |
| | | CopyOnWriteArraySet<ClientConnection> connectionSet = userMap.get(userDN); |
| | | if (connectionSet != null) |