Package org.glassfish.grizzly.ssl
Class SSLStreamWriter
- java.lang.Object
-
- org.glassfish.grizzly.streams.AbstractStreamWriter
-
- org.glassfish.grizzly.streams.TransformerStreamWriter
-
- org.glassfish.grizzly.ssl.SSLStreamWriter
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
,Stream
,StreamWriter
public class SSLStreamWriter extends TransformerStreamWriter
SSL awareStreamWriter
implementation, which work like a wrapper over existingStreamWriter
.- Author:
- Alexey Stashok
- See Also:
SSLStreamReader
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static class
SSLStreamWriter.HandshakeCompletionHandler
protected static class
SSLStreamWriter.SSLHandshakeCondition
-
Nested classes/interfaces inherited from class org.glassfish.grizzly.streams.AbstractStreamWriter
AbstractStreamWriter.DisposeBufferCompletionHandler
-
-
Field Summary
-
Fields inherited from class org.glassfish.grizzly.streams.AbstractStreamWriter
isOutputBuffered, logger, output, ZERO, ZERO_READY_FUTURE
-
-
Constructor Summary
Constructors Constructor Description SSLStreamWriter(StreamWriter underlyingWriter)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Future<SSLEngine>
handshake(SSLStreamReader sslStreamReader, SSLEngineConfigurator configurator)
Future<SSLEngine>
handshake(SSLStreamReader sslStreamReader, SSLEngineConfigurator configurator, CompletionHandler<SSLEngine> completionHandler)
-
Methods inherited from class org.glassfish.grizzly.streams.AbstractStreamWriter
close, close, encode, encode, flush, flush, getConnection, getTimeout, isClosed, setTimeout, writeBoolean, writeBooleanArray, writeBuffer, writeByte, writeByteArray, writeByteArray, writeChar, writeCharArray, writeDouble, writeDoubleArray, writeFloat, writeFloatArray, writeInt, writeIntArray, writeLong, writeLongArray, writeShort, writeShortArray
-
-
-
-
Constructor Detail
-
SSLStreamWriter
public SSLStreamWriter(StreamWriter underlyingWriter)
-
-
Method Detail
-
handshake
public Future<SSLEngine> handshake(SSLStreamReader sslStreamReader, SSLEngineConfigurator configurator) throws IOException
- Throws:
IOException
-
handshake
public Future<SSLEngine> handshake(SSLStreamReader sslStreamReader, SSLEngineConfigurator configurator, CompletionHandler<SSLEngine> completionHandler) throws IOException
- Throws:
IOException
-
-