java.lang.Object
org.glassfish.grizzly.ssl.SSLUtils
Utility class, which implements the set of useful SSL related operations.
- Author:
- Alexey Stashok
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Buffer
static Buffer
allowDispose
(Buffer buffer) static void
executeDelegatedTask
(SSLEngine sslEngine) Complete handshakes operations.static SSLConnectionContext
getSslConnectionContext
(Connection connection) static SSLEngine
getSSLEngine
(Connection connection) static int
getSSLPacketSize
(Buffer buf) static SSLEngineResult
handshakeUnwrap
(int length, SSLConnectionContext sslCtx, Buffer inputBuffer, Buffer tmpOutputBuffer) static Buffer
handshakeWrap
(Connection connection, SSLConnectionContext sslCtx, Buffer netBuffer) static boolean
isHandshaking
(SSLEngine sslEngine) static void
setSSLEngine
(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
-