com.gigaspaces.lrmi.nio.filters
Class IOSSLFilter

java.lang.Object
  extended by com.gigaspaces.lrmi.nio.filters.IOSSLFilter
All Implemented Interfaces:
IOBlockFilter, IOFilter

public class IOSSLFilter
extends Object
implements IOBlockFilter

Implementation of SSLFilter that use underline SUN SSLEngine.


Constructor Summary
IOSSLFilter(SSLContext sslContext)
           
 
Method Summary
 void beginHandshake()
          Initiation of handshake process.
 int getApplicationBufferSize()
          Return the application max block size
 Runnable getDelegatedTask()
          When filter wish to do some calculation this is the way to handle the calculation code to the filter container.
 com.gigaspaces.lrmi.nio.filters.IOFilterResult.HandshakeStatus getHandshakeStatus()
          Report the Hanshake status.
 int getPacketBufferSize()
           
 boolean getUseClientMode()
           
 void setRemoteAddress(SocketAddress remoteAddress)
           
 void setUseClientMode(boolean mode)
           
 String toString()
           
 com.gigaspaces.lrmi.nio.filters.IOFilterResult unwrap(ByteBuffer src, ByteBuffer dst)
          Unwrap some bytes
 com.gigaspaces.lrmi.nio.filters.IOFilterResult wrap(ByteBuffer src, ByteBuffer dst)
          Wrap some bytes
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IOSSLFilter

public IOSSLFilter(SSLContext sslContext)
Method Detail

beginHandshake

public void beginHandshake()
                    throws com.gigaspaces.lrmi.nio.filters.IOFilterException
Description copied from interface: IOBlockFilter
Initiation of handshake process.

Specified by:
beginHandshake in interface IOBlockFilter
Throws:
IOFilterException

getApplicationBufferSize

public int getApplicationBufferSize()
Description copied from interface: IOBlockFilter
Return the application max block size

Specified by:
getApplicationBufferSize in interface IOBlockFilter
Returns:

getDelegatedTask

public Runnable getDelegatedTask()
Description copied from interface: IOBlockFilter
When filter wish to do some calculation this is the way to handle the calculation code to the filter container.

Specified by:
getDelegatedTask in interface IOBlockFilter
Returns:

getHandshakeStatus

public com.gigaspaces.lrmi.nio.filters.IOFilterResult.HandshakeStatus getHandshakeStatus()
Description copied from interface: IOBlockFilter
Report the Hanshake status.

Specified by:
getHandshakeStatus in interface IOBlockFilter
Returns:

getPacketBufferSize

public int getPacketBufferSize()
Specified by:
getPacketBufferSize in interface IOBlockFilter
Returns:
the network max block size

getUseClientMode

public boolean getUseClientMode()

setUseClientMode

public void setUseClientMode(boolean mode)

unwrap

public com.gigaspaces.lrmi.nio.filters.IOFilterResult unwrap(ByteBuffer src,
                                                             ByteBuffer dst)
                                                      throws com.gigaspaces.lrmi.nio.filters.IOFilterException
Description copied from interface: IOBlockFilter
Unwrap some bytes

Specified by:
unwrap in interface IOBlockFilter
Returns:
Throws:
IOFilterException

wrap

public com.gigaspaces.lrmi.nio.filters.IOFilterResult wrap(ByteBuffer src,
                                                           ByteBuffer dst)
                                                    throws com.gigaspaces.lrmi.nio.filters.IOFilterException
Description copied from interface: IOBlockFilter
Wrap some bytes

Specified by:
wrap in interface IOBlockFilter
Returns:
Throws:
IOFilterException

setRemoteAddress

public void setRemoteAddress(SocketAddress remoteAddress)
Specified by:
setRemoteAddress in interface IOFilter

toString

public String toString()
Overrides:
toString in class Object