com.sun.enterprise.web.connector.grizzly.ssl
Class SSLOutputWriter

java.lang.Object
  extended by com.sun.enterprise.web.connector.grizzly.ssl.SSLOutputWriter

public final class SSLOutputWriter
extends Object

SSL over NIO utility to encrypt ByteBuffer and flush them. All the SSLEngine operations are delegated to class SSLUtils

Author:
Jeanfrancois Arcand

Constructor Summary
SSLOutputWriter()
           
 
Method Summary
static void flushChannel(SocketChannel socketChannel, ByteBuffer bb)
          Encrypt the response and flush it using OutputWriter
static void flushChannel(SocketChannel socketChannel, ByteBuffer bb, ByteBuffer outputBB, 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
 

Constructor Detail

SSLOutputWriter

public SSLOutputWriter()
Method Detail

flushChannel

public static void flushChannel(SocketChannel socketChannel,
                                ByteBuffer bb)
                         throws IOException
Encrypt the response and flush it using OutputWriter

Throws:
IOException

flushChannel

public static void flushChannel(SocketChannel socketChannel,
                                ByteBuffer bb,
                                ByteBuffer outputBB,
                                SSLEngine sslEngine)
                         throws IOException
Encrypt the response and flush it using OutputWriter

Throws:
IOException


Copyright © 2005-2015 Oracle Corporation. All Rights Reserved.