public final class SSLSession extends Object
SSL_SESSION
.Modifier and Type | Method and Description |
---|---|
static void |
free(long session)
See SSL_SESSION_free.
|
static byte[] |
getSessionId(long session)
See SSL_SESSION_get_id.
|
static long |
getTime(long session)
See SSL_SESSION_get_time.
|
static long |
getTimeout(long session)
|
static long |
setTimeout(long session,
long seconds)
|
static boolean |
shouldBeSingleUse(long session)
Will return
true if the session should only re-used once. |
static boolean |
upRef(long session)
See SSL_SESSION_up_ref.
|
public static long getTime(long session)
session
- the SSL_SESSION instance (SSL_SESSION *)public static long getTimeout(long session)
session
- the SSL_SESSION instance (SSL_SESSION *)public static long setTimeout(long session, long seconds)
session
- the SSL_SESSION instance (SSL_SESSION *)seconds
- timeout in secondspublic static byte[] getSessionId(long session)
session
- the SSL_SESSION instance (SSL_SESSION *)public static boolean upRef(long session)
session
- the SSL_SESSION instance (SSL_SESSION *)true
if successful, false
otherwise.public static void free(long session)
session
- the SSL_SESSION instance (SSL_SESSION *)public static boolean shouldBeSingleUse(long session)
true
if the session should only re-used once.
See SSL_SESSION_should_be_single_use.session
- true
if the session should be re-used once only, false
otherwise.Copyright © 2008–2021 The Netty Project. All rights reserved.