org.opends.server.extensions
Class InternalConnectionSecurityProvider

java.lang.Object
  extended by org.opends.server.api.ConnectionSecurityProvider
      extended by org.opends.server.extensions.NullConnectionSecurityProvider
          extended by org.opends.server.extensions.InternalConnectionSecurityProvider

public class InternalConnectionSecurityProvider
extends NullConnectionSecurityProvider

This provides an implementation of a connection security provider that is intended to be used for internal client connections. It is exactly the same as the null connection security provider in that it doesn't actually protect anything, but the isSecure method always returns true because it is inherently secure by being an internal connection.


Constructor Summary
  InternalConnectionSecurityProvider()
          Creates a new instance of this internal connection security provider.
protected InternalConnectionSecurityProvider(ClientConnection clientConnection, java.nio.channels.SocketChannel socketChannel)
          Creates a new instance of this internal connection security provider with the provided information.
 
Method Summary
 java.lang.String getSecurityMechanismName()
          Retrieves the name used to identify this security mechanism.
 boolean isSecure()
          Indicates whether client connections using this connection security provider should be considered secure.
 ConnectionSecurityProvider newInstance(ClientConnection clientConnection, java.nio.channels.SocketChannel socketChannel)
          Creates a new instance of this connection security provider that will be used to encode and decode all communication on the provided client connection.
 
Methods inherited from class org.opends.server.extensions.NullConnectionSecurityProvider
disconnect, finalizeConnectionSecurityProvider, getClearBufferSize, getEncodedBufferSize, initializeConnectionSecurityProvider, readData, writeData, writeWithTimeout
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InternalConnectionSecurityProvider

public InternalConnectionSecurityProvider()
Creates a new instance of this internal connection security provider.


InternalConnectionSecurityProvider

protected InternalConnectionSecurityProvider(ClientConnection clientConnection,
                                             java.nio.channels.SocketChannel socketChannel)
Creates a new instance of this internal connection security provider with the provided information.

Parameters:
clientConnection - The client connection for this security provider instance.
socketChannel - The socket channel for this security provider instance.
Method Detail

getSecurityMechanismName

public java.lang.String getSecurityMechanismName()
Retrieves the name used to identify this security mechanism.

Overrides:
getSecurityMechanismName in class NullConnectionSecurityProvider
Returns:
The name used to identify this security mechanism.

isSecure

public boolean isSecure()
Indicates whether client connections using this connection security provider should be considered secure.

Overrides:
isSecure in class NullConnectionSecurityProvider
Returns:
true if client connections using this connection security provider should be considered secure, or false if not.

newInstance

public ConnectionSecurityProvider newInstance(ClientConnection clientConnection,
                                              java.nio.channels.SocketChannel socketChannel)
                                       throws DirectoryException
Creates a new instance of this connection security provider that will be used to encode and decode all communication on the provided client connection.

Overrides:
newInstance in class NullConnectionSecurityProvider
Parameters:
clientConnection - The client connection with which this security provider will be associated.
socketChannel - The socket channel that may be used to communicate with the client.
Returns:
The created connection security provider instance.
Throws:
DirectoryException - If a problem occurs while creating a new instance of this security provider for the given client connection.