java.lang.Object
org.glassfish.grizzly.ssl.SSLUtils
Utility class, which implements the set of useful SSL related operations.
- Author:
- Alexey Stashok
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Bufferstatic BufferallowDispose(Buffer buffer) static voidexecuteDelegatedTask(SSLEngine sslEngine) Complete handshakes operations.static SSLConnectionContextgetSslConnectionContext(Connection connection) static SSLEnginegetSSLEngine(Connection connection) static intgetSSLPacketSize(Buffer buf) static SSLEngineResulthandshakeUnwrap(int length, SSLConnectionContext sslCtx, Buffer inputBuffer, Buffer tmpOutputBuffer) static BufferhandshakeWrap(Connection connection, SSLConnectionContext sslCtx, Buffer netBuffer) static booleanisHandshaking(SSLEngine sslEngine) static voidsetSSLEngine(Connection connection, SSLEngine sslEngine)
-
Constructor Details
-
SSLUtils
public SSLUtils()
-
-
Method Details
-
getSslConnectionContext
-
getSSLEngine
-
setSSLEngine
-
getSSLPacketSize
- Throws:
SSLException
-
executeDelegatedTask
Complete handshakes operations.- Parameters:
sslEngine- The SSLEngine used to manage the SSL operations.
-
isHandshaking
-
handshakeUnwrap
public static SSLEngineResult handshakeUnwrap(int length, SSLConnectionContext sslCtx, Buffer inputBuffer, Buffer tmpOutputBuffer) throws SSLException - Throws:
SSLException
-
handshakeWrap
public static Buffer handshakeWrap(Connection connection, SSLConnectionContext sslCtx, Buffer netBuffer) throws SSLException - Throws:
SSLException
-
allocateInputBuffer
-
allowDispose
-