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 SSLEngineConfigurator
getClientSSLEngineConfig()
Transformer<Buffer,Buffer>
getDecoder()
Transformer<Buffer,Buffer>
getEncoder()
SSLEngineConfigurator
getServerSSLEngineConfig()
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:
getDecoder
in interfaceCodec<Buffer,Buffer>
-
getEncoder
public Transformer<Buffer,Buffer> getEncoder()
- Specified by:
getEncoder
in 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
-
-