GigaSpaces XAP 7.0 API

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.

Author:
barak

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()
          Return the network max block size
 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
clone, equals, finalize, 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:
application max block size

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:
task to run

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:
hanshake status

getPacketBufferSize

public int getPacketBufferSize()
Description copied from interface: IOBlockFilter
Return the network max block size

Specified by:
getPacketBufferSize in interface IOBlockFilter
Returns:
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
Parameters:
src - source buffer
dst - target buffer
Returns:
filter result
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
Parameters:
src - source buffer
dst - target buffer
Returns:
filter result
Throws:
IOFilterException

setRemoteAddress

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

toString

public String toString()
Overrides:
toString in class Object

GigaSpaces XAP 7.0 API

Copyright © GigaSpaces.