public class SSLUtils extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
SSL_ENGINE_ATTR_NAME |
static Attribute<SSLEngine> |
sslEngineAttribute |
| Constructor and Description |
|---|
SSLUtils() |
| Modifier and Type | Method and Description |
|---|---|
static void |
executeDelegatedTask(SSLEngine sslEngine)
Complete handshakes operations.
|
static SSLEngine |
getSSLEngine(AttributeStorage storage) |
static int |
getSSLPacketSize(Buffer buf) |
static SSLEngineResult |
handshakeUnwrap(Connection connection,
SSLEngine sslEngine,
Buffer inputBuffer) |
static Buffer |
handshakeWrap(Connection connection,
SSLEngine sslEngine) |
static boolean |
isHandshaking(SSLEngine sslEngine) |
static void |
setSSLEngine(AttributeStorage storage,
SSLEngine sslEngine) |
public static final String SSL_ENGINE_ATTR_NAME
public static SSLEngine getSSLEngine(AttributeStorage storage)
public static void setSSLEngine(AttributeStorage storage, SSLEngine sslEngine)
public static int getSSLPacketSize(Buffer buf) throws SSLException
SSLExceptionpublic static void executeDelegatedTask(SSLEngine sslEngine)
sslEngine - The SSLEngine used to manage the SSL operations.public static boolean isHandshaking(SSLEngine sslEngine)
public static SSLEngineResult handshakeUnwrap(Connection connection, SSLEngine sslEngine, Buffer inputBuffer) throws SSLException
SSLExceptionpublic static Buffer handshakeWrap(Connection connection, SSLEngine sslEngine) throws SSLException
SSLExceptionCopyright © 2013 Oracle Corporation. All Rights Reserved.