| | |
| | | public class StartTLSExtendedOperation |
| | | extends ExtendedOperationHandler<StartTLSExtendedOperationHandlerCfg> |
| | | { |
| | | |
| | | /** |
| | | * Create an instance of this StartTLS extended operation handler. All |
| | | * initialization should be performed in the |
| | |
| | | super(); |
| | | } |
| | | |
| | | /** {@inheritDoc} */ |
| | | @Override |
| | | public void initializeExtendedOperationHandler( |
| | | StartTLSExtendedOperationHandlerCfg config) |
| | |
| | | // happen. |
| | | operation.setResponseOID(OID_START_TLS_REQUEST); |
| | | |
| | | |
| | | // Get the reference to the client connection. If there is none, then fail. |
| | | ClientConnection clientConnection = operation.getClientConnection(); |
| | | if (clientConnection == null) |
| | |
| | | return; |
| | | } |
| | | |
| | | |
| | | // Make sure that the client connection is capable of enabling TLS. If not, |
| | | // then fail. |
| | | TLSCapableConnection tlsCapableConnection; |
| | |
| | | operation.setResultCode(ResultCode.SUCCESS); |
| | | } |
| | | |
| | | /** {@inheritDoc} */ |
| | | @Override |
| | | public String getExtendedOperationOID() |
| | | { |
| | | return OID_START_TLS_REQUEST; |
| | | } |
| | | |
| | | /** {@inheritDoc} */ |
| | | @Override |
| | | public String getExtendedOperationName() |
| | | { |