com.sun.grizzly.ssl
Class SSLCodec

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

public class SSLCodec
extends Object
implements Codec<Buffer,Buffer>

SSL Codec, which contains SSL encoder and decoder Transformers.

Author:
Alexey Stashok

Constructor Summary
SSLCodec(SSLContext sslContext)
           
SSLCodec(SSLContextConfigurator config)
           
 
Method Summary
 SSLEngineConfigurator getClientSSLEngineConfig()
           
 Transformer<Buffer,Buffer> getDecoder()
          
 Transformer<Buffer,Buffer> getEncoder()
          
 SSLEngineConfigurator getServerSSLEngineConfig()
           
 SSLHandshaker getSslHandshaker()
           
 Future<SSLEngine> handshake(Connection connection)
           
 Future<SSLEngine> handshake(Connection connection, SSLEngineConfigurator configurator)
           
 void setSslHandshaker(SSLHandshaker sslHandshaker)
           
 
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(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()

getSslHandshaker

public SSLHandshaker getSslHandshaker()

setSslHandshaker

public void setSslHandshaker(SSLHandshaker sslHandshaker)

handshake

public Future<SSLEngine> handshake(Connection connection)
                            throws IOException
Throws:
IOException

handshake

public Future<SSLEngine> handshake(Connection connection,
                                   SSLEngineConfigurator configurator)
                            throws IOException
Throws:
IOException


Copyright © 2009 SUN Microsystems. All Rights Reserved.