com.sun.grizzly.util
Class SSLOutputWriter
java.lang.Object
com.sun.grizzly.util.SSLOutputWriter
public final class SSLOutputWriter
- extends java.lang.Object
SSL over NIO utility to encrypt ByteBuffer and flush them.
All the SSLEngine operations are delegated to class SSLUtils
- Author:
- Jeanfrancois Arcand
|
Method Summary |
static long |
flushChannel(java.nio.channels.SelectableChannel channel,
java.nio.ByteBuffer bb)
Encrypt the response and flush it using OutputWriter |
static long |
flushChannel(java.nio.channels.SelectableChannel channel,
java.nio.ByteBuffer bb,
java.nio.ByteBuffer outputBB,
javax.net.ssl.SSLEngine sslEngine)
Encrypt the response and flush it using OutputWriter |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SSLOutputWriter
public SSLOutputWriter()
flushChannel
public static long flushChannel(java.nio.channels.SelectableChannel channel,
java.nio.ByteBuffer bb)
throws java.io.IOException
- Encrypt the response and flush it using
OutputWriter
- Parameters:
channel - SelectableChannel to flushbb - ByteBuffer
- Returns:
- number of bytes written
- Throws:
java.io.IOException
flushChannel
public static long flushChannel(java.nio.channels.SelectableChannel channel,
java.nio.ByteBuffer bb,
java.nio.ByteBuffer outputBB,
javax.net.ssl.SSLEngine sslEngine)
throws java.io.IOException
- Encrypt the response and flush it using
OutputWriter
- Parameters:
channel - SelectableChannel to flushbb - input ByteBufferoutputBB - output ByteBuffersslEngine - SSLEngine
- Returns:
- number of bytes written
- Throws:
java.io.IOException
Copyright © 2012 Oracle Corporation. All Rights Reserved.