| | |
| | | |
| | | import org.opends.server.api.ClientConnection; |
| | | import org.opends.server.api.ExtendedOperationHandler; |
| | | import org.opends.server.config.ConfigEntry; |
| | | import org.opends.server.config.ConfigException; |
| | | import org.opends.server.core.DirectoryServer; |
| | | import org.opends.server.core.ExtendedOperation; |
| | |
| | | import static org.opends.server.messages.MessageHandler.*; |
| | | import static org.opends.server.util.ServerConstants.*; |
| | | import static org.opends.server.util.StaticUtils.*; |
| | | |
| | | import org.opends.server.admin.std.server.ExtendedOperationHandlerCfg; |
| | | |
| | | |
| | | /** |
| | |
| | | * client. |
| | | */ |
| | | public class StartTLSExtendedOperation |
| | | extends ExtendedOperationHandler |
| | | extends ExtendedOperationHandler<ExtendedOperationHandlerCfg> |
| | | { |
| | | |
| | | |
| | |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | /** |
| | | * Initializes this extended operation handler based on the information in the |
| | | * provided configuration entry. It should also register itself with the |
| | | * Directory Server for the particular kinds of extended operations that it |
| | | * will process. |
| | | * |
| | | * @param configEntry The configuration entry that contains the information |
| | | * @param config The configuration that contains the information |
| | | * to use to initialize this extended operation handler. |
| | | * |
| | | * @throws ConfigException If an unrecoverable problem arises in the |
| | |
| | | * that is not related to the server |
| | | * configuration. |
| | | */ |
| | | public void initializeExtendedOperationHandler(ConfigEntry configEntry) |
| | | throws ConfigException, InitializationException |
| | | public void initializeExtendedOperationHandler( |
| | | ExtendedOperationHandlerCfg config) |
| | | throws ConfigException, InitializationException |
| | | { |
| | | // FIXME -- Are there any configurable options that we should support? |
| | | DirectoryServer.registerSupportedExtension(OID_START_TLS_REQUEST, this); |
| | | |
| | | registerControlsAndFeatures(); |
| | | } |
| | | |
| | | |
| | |
| | | public void finalizeExtendedOperationHandler() |
| | | { |
| | | DirectoryServer.deregisterSupportedExtension(OID_START_TLS_REQUEST); |
| | | |
| | | deregisterControlsAndFeatures(); |
| | | } |
| | | |
| | | |