Package org.glassfish.grizzly.ssl
Class SSLCodec
- java.lang.Object
-
- org.glassfish.grizzly.ssl.SSLCodec
-
-
Constructor Summary
Constructors Constructor Description SSLCodec(SSLContext sslContext)SSLCodec(SSLContextConfigurator config)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SSLEngineConfiguratorgetClientSSLEngineConfig()Transformer<Buffer,Buffer>getDecoder()Transformer<Buffer,Buffer>getEncoder()SSLEngineConfiguratorgetServerSSLEngineConfig()Future<SSLEngine>handshake(Connection connection)Future<SSLEngine>handshake(Connection connection, SSLEngineConfigurator configurator)
-
-
-
Constructor Detail
-
SSLCodec
public SSLCodec(SSLContextConfigurator config)
-
SSLCodec
public SSLCodec(SSLContext sslContext)
-
-
Method Detail
-
getDecoder
public Transformer<Buffer,Buffer> getDecoder()
- Specified by:
getDecoderin interfaceCodec<Buffer,Buffer>
-
getEncoder
public Transformer<Buffer,Buffer> getEncoder()
- Specified by:
getEncoderin interfaceCodec<Buffer,Buffer>
-
getClientSSLEngineConfig
public SSLEngineConfigurator getClientSSLEngineConfig()
-
getServerSSLEngineConfig
public SSLEngineConfigurator getServerSSLEngineConfig()
-
handshake
public Future<SSLEngine> handshake(Connection connection) throws IOException
- Throws:
IOException
-
handshake
public Future<SSLEngine> handshake(Connection connection, SSLEngineConfigurator configurator) throws IOException
- Throws:
IOException
-
-