org.glassfish.grizzly.ssl
Class SSLCodec

java.lang.Object
  extended by org.glassfish.grizzly.ssl.SSLCodec
All Implemented Interfaces:
Codec<Buffer,Buffer>

public class SSLCodec
extends java.lang.Object
implements Codec<Buffer,Buffer>

SSL Codec, which contains SSL encoder and decoder Transformers.

Author:
Alexey Stashok

Constructor Summary
SSLCodec(javax.net.ssl.SSLContext sslContext)
           
SSLCodec(SSLContextConfigurator config)
           
 
Method Summary
 SSLEngineConfigurator getClientSSLEngineConfig()
           
 Transformer<Buffer,Buffer> getDecoder()
          
 Transformer<Buffer,Buffer> getEncoder()
          
 SSLEngineConfigurator getServerSSLEngineConfig()
           
 java.util.concurrent.Future<javax.net.ssl.SSLEngine> handshake(Connection connection)
           
 java.util.concurrent.Future<javax.net.ssl.SSLEngine> handshake(Connection connection, SSLEngineConfigurator configurator)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SSLCodec

public SSLCodec(SSLContextConfigurator config)

SSLCodec

public SSLCodec(javax.net.ssl.SSLContext sslContext)
Method Detail

getDecoder

public Transformer<Buffer,Buffer> getDecoder()

Specified by:
getDecoder in interface Codec<Buffer,Buffer>

getEncoder

public Transformer<Buffer,Buffer> getEncoder()

Specified by:
getEncoder in interface Codec<Buffer,Buffer>

getClientSSLEngineConfig

public SSLEngineConfigurator getClientSSLEngineConfig()

getServerSSLEngineConfig

public SSLEngineConfigurator getServerSSLEngineConfig()

handshake

public java.util.concurrent.Future<javax.net.ssl.SSLEngine> handshake(Connection connection)
                                                               throws java.io.IOException
Throws:
java.io.IOException

handshake

public java.util.concurrent.Future<javax.net.ssl.SSLEngine> handshake(Connection connection,
                                                                      SSLEngineConfigurator configurator)
                                                               throws java.io.IOException
Throws:
java.io.IOException


Copyright © 2012 Oracle Corporation. All Rights Reserved.