| | |
| | | |
| | | import static org.opends.server.loggers.debug.DebugLogger.*; |
| | | import org.opends.server.loggers.debug.DebugTracer; |
| | | import static org.opends.server.messages.ExtensionsMessages.*; |
| | | import static org.opends.messages.ExtensionMessages.*; |
| | | import static org.opends.server.util.StaticUtils.*; |
| | | |
| | | |
| | | |
| | | /** |
| | | * This class provides an implementation of a connection security provider that |
| | | * does not actually provide any security for the communication process. Any |
| | |
| | | // The connection has been closed by the client. Disconnect and |
| | | // return. |
| | | clientConnection.disconnect(DisconnectReason.CLIENT_DISCONNECT, false, |
| | | -1); |
| | | null); |
| | | return false; |
| | | } |
| | | else if (bytesRead == 0) |
| | |
| | | |
| | | // An error occurred while trying to read data from the client. |
| | | // Disconnect and return. |
| | | clientConnection.disconnect(DisconnectReason.IO_ERROR, false, -1); |
| | | clientConnection.disconnect(DisconnectReason.IO_ERROR, false, null); |
| | | return false; |
| | | } |
| | | catch (Exception e) |
| | |
| | | |
| | | // An unexpected error occurred. Disconnect and return. |
| | | clientConnection.disconnect(DisconnectReason.SERVER_ERROR, true, |
| | | MSGID_NULL_SECURITY_PROVIDER_READ_ERROR, |
| | | getExceptionMessage(e)); |
| | | ERR_NULL_SECURITY_PROVIDER_READ_ERROR.get( |
| | | getExceptionMessage(e))); |
| | | return false; |
| | | } |
| | | } |
| | |
| | | { |
| | | // The client connection has been closed. Disconnect and return. |
| | | clientConnection.disconnect(DisconnectReason.CLIENT_DISCONNECT, false, |
| | | -1); |
| | | null); |
| | | return false; |
| | | } |
| | | } |
| | |
| | | |
| | | // An error occurred while trying to write data to the client. Disconnect |
| | | // and return. |
| | | clientConnection.disconnect(DisconnectReason.IO_ERROR, false, -1); |
| | | clientConnection.disconnect(DisconnectReason.IO_ERROR, false, null); |
| | | return false; |
| | | } |
| | | catch (Exception e) |
| | |
| | | |
| | | // An unexpected error occurred. Disconnect and return. |
| | | clientConnection.disconnect(DisconnectReason.SERVER_ERROR, true, |
| | | MSGID_NULL_SECURITY_PROVIDER_WRITE_ERROR, |
| | | getExceptionMessage(e)); |
| | | ERR_NULL_SECURITY_PROVIDER_WRITE_ERROR.get( |
| | | getExceptionMessage(e))); |
| | | return false; |
| | | } |
| | | finally |