public final class SSLUtils extends Object
Constructor and Description |
---|
SSLUtils() |
Modifier and Type | Method and Description |
---|---|
static Buffer |
allocateInputBuffer(SSLConnectionContext sslCtx) |
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(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) |
public static SSLConnectionContext getSslConnectionContext(Connection connection)
public static SSLEngine getSSLEngine(Connection connection)
public static void setSSLEngine(Connection connection, SSLEngine sslEngine)
public static int getSSLPacketSize(Buffer buf) throws SSLException
SSLException
public static void executeDelegatedTask(SSLEngine sslEngine)
sslEngine
- The SSLEngine used to manage the SSL operations.public static boolean isHandshaking(SSLEngine sslEngine)
public static SSLEngineResult handshakeUnwrap(SSLConnectionContext sslCtx, Buffer inputBuffer, Buffer tmpOutputBuffer) throws SSLException
SSLException
public static Buffer handshakeWrap(Connection connection, SSLConnectionContext sslCtx, Buffer netBuffer) throws SSLException
SSLException
public static Buffer allocateInputBuffer(SSLConnectionContext sslCtx)
Copyright © 2015 Oracle Corporation. All rights reserved.