| | |
| | | * CDDL HEADER END |
| | | * |
| | | * |
| | | * Portions Copyright 2006 Sun Microsystems, Inc. |
| | | * Portions Copyright 2006-2007 Sun Microsystems, Inc. |
| | | */ |
| | | package org.opends.server.authorization; |
| | | |
| | | import static org.opends.server.loggers.Debug.debugConstructor; |
| | | import static org.opends.server.loggers.Debug.debugEnter; |
| | | |
| | | import org.opends.server.api.AccessControlHandler; |
| | | import org.opends.server.api.AccessControlProvider; |
| | | import org.opends.server.config.ConfigEntry; |
| | |
| | | */ |
| | | public class BasicAccessControlProvider implements |
| | | AccessControlProvider { |
| | | // Fully qualified class name for debugging purposes. |
| | | private static final String CLASS_NAME = |
| | | "org.opends.server.authorization.BasicAccessControlProvider"; |
| | | |
| | | /** |
| | | * The single handler instance. |
| | |
| | | public BasicAccessControlProvider() { |
| | | super(); |
| | | |
| | | assert debugConstructor(CLASS_NAME); |
| | | |
| | | // No implementation required. |
| | | } |
| | |
| | | */ |
| | | public void initializeAccessControlHandler(ConfigEntry configEntry) |
| | | throws ConfigException, InitializationException { |
| | | assert debugEnter(CLASS_NAME, "initializeAccessControlHandler"); |
| | | |
| | | // Avoid potential race conditions constructing the handler instance |
| | | // and create it here. |
| | |
| | | * {@inheritDoc} |
| | | */ |
| | | public void finalizeAccessControlHandler() { |
| | | assert debugEnter(CLASS_NAME, "finalizeAccessControlHandler"); |
| | | |
| | | // No implementation required. |
| | | } |
| | |
| | | * {@inheritDoc} |
| | | */ |
| | | public AccessControlHandler getInstance() { |
| | | assert debugEnter(CLASS_NAME, "getInstance"); |
| | | |
| | | if (instance == null) { |
| | | instance = new BasicAccessControlHandler(); |