com.sun.grizzly.ssl
Class SSLAsyncStream

java.lang.Object
  extended by java.io.InputStream
      extended by com.sun.grizzly.util.ByteBufferInputStream
          extended by com.sun.grizzly.ssl.SSLAsyncStream
All Implemented Interfaces:
Closeable

public class SSLAsyncStream
extends ByteBufferInputStream

This class add support for TLS|SSL to a ByteBufferInputStream.

Author:
Jean-Francois Arcand

Nested Class Summary
 
Nested classes/interfaces inherited from class com.sun.grizzly.util.ByteBufferInputStream
ByteBufferInputStream.ChannelType
 
Field Summary
 
Fields inherited from class com.sun.grizzly.util.ByteBufferInputStream
byteBuffer, key, readTimeout
 
Constructor Summary
SSLAsyncStream(ByteBuffer byteBuffer)
           
 
Method Summary
protected  int doRead()
          Read and decrypt bytes from the underlying SSL connections.
 ByteBuffer getInputBB()
           
 SSLEngine getSslEngine()
           
 void setInputBB(ByteBuffer inputBB)
           
 void setSslEngine(SSLEngine sslEngine)
           
 
Methods inherited from class com.sun.grizzly.util.ByteBufferInputStream
available, close, doClearRead, doSecureRead, getByteBuffer, getChannelType, getDefaultReadTimeout, getReadTimeout, isSecure, markSupported, read, read, read, read, recycle, setByteBuffer, setChannelType, setDefaultReadTimeout, setReadTimeout, setSecure, setSelectionKey
 
Methods inherited from class java.io.InputStream
mark, reset, skip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SSLAsyncStream

public SSLAsyncStream(ByteBuffer byteBuffer)
Method Detail

doRead

protected int doRead()
Read and decrypt bytes from the underlying SSL connections. All the SSLEngine operations are delegated to class SSLUtils.

Overrides:
doRead in class ByteBufferInputStream
Returns:
- number of bytes read

getSslEngine

public SSLEngine getSslEngine()

setSslEngine

public void setSslEngine(SSLEngine sslEngine)

getInputBB

public ByteBuffer getInputBB()

setInputBB

public void setInputBB(ByteBuffer inputBB)


Copyright © 2010 SUN Microsystems. All Rights Reserved.