| | |
| | | public void initializeConnectionSecurityProvider(ConfigEntry configEntry) |
| | | throws ConfigException, InitializationException |
| | | { |
| | | |
| | | clearBuffer = null; |
| | | clientConnection = null; |
| | | socketChannel = null; |
| | |
| | | */ |
| | | public void finalizeConnectionSecurityProvider() |
| | | { |
| | | |
| | | // No implementation is required. |
| | | } |
| | | |
| | |
| | | */ |
| | | public String getSecurityMechanismName() |
| | | { |
| | | |
| | | return "NULL"; |
| | | } |
| | | |
| | |
| | | */ |
| | | public boolean isSecure() |
| | | { |
| | | |
| | | // This is not a secure provider. |
| | | return false; |
| | | } |
| | |
| | | SocketChannel socketChannel) |
| | | throws DirectoryException |
| | | { |
| | | |
| | | return new NullConnectionSecurityProvider(clientConnection, |
| | | socketChannel); |
| | | } |
| | |
| | | */ |
| | | public void disconnect(boolean connectionValid) |
| | | { |
| | | |
| | | // No implementation is required. |
| | | } |
| | | |
| | |
| | | */ |
| | | public int getClearBufferSize() |
| | | { |
| | | |
| | | return BUFFER_SIZE; |
| | | } |
| | | |
| | |
| | | */ |
| | | public int getEncodedBufferSize() |
| | | { |
| | | |
| | | return BUFFER_SIZE; |
| | | } |
| | | |
| | |
| | | */ |
| | | public boolean readData() |
| | | { |
| | | |
| | | clearBuffer.clear(); |
| | | while (true) |
| | | { |
| | |
| | | */ |
| | | public boolean writeData(ByteBuffer clearData) |
| | | { |
| | | |
| | | int position = clearData.position(); |
| | | int limit = clearData.limit(); |
| | | |