类 SSLSession
- java.lang.Object
-
- io.netty.internal.tcnative.SSLSession
-
public final class SSLSession extends Object
Methods to operate on aSSL_SESSION.
-
-
方法概要
所有方法 静态方法 具体方法 修饰符和类型 方法 说明 static voidfree(long session)See SSL_SESSION_free.static byte[]getSessionId(long session)See SSL_SESSION_get_id.static longgetTime(long session)See SSL_SESSION_get_time.static longgetTimeout(long session)static longsetTimeout(long session, long seconds)static booleanshouldBeSingleUse(long session)Will returntrueif the session should only re-used once.static booleanupRef(long session)See SSL_SESSION_up_ref.
-
-
-
方法详细资料
-
getTime
public static long getTime(long session)
See SSL_SESSION_get_time.- 参数:
session- the SSL_SESSION instance (SSL_SESSION *)- 返回:
- returns the time at which the session was established. The time is given in seconds since the Epoch
-
getTimeout
public static long getTimeout(long session)
- 参数:
session- the SSL_SESSION instance (SSL_SESSION *)- 返回:
- returns the timeout for the session. The time is given in seconds since the Epoch
-
setTimeout
public static long setTimeout(long session, long seconds)- 参数:
session- the SSL_SESSION instance (SSL_SESSION *)seconds- timeout in seconds- 返回:
- returns the timeout for the session before this call. The time is given in seconds since the Epoch
-
getSessionId
public static byte[] getSessionId(long session)
See SSL_SESSION_get_id.- 参数:
session- the SSL_SESSION instance (SSL_SESSION *)- 返回:
- the session id as byte array representation obtained via SSL_SESSION_get_id.
-
upRef
public static boolean upRef(long session)
See SSL_SESSION_up_ref.- 参数:
session- the SSL_SESSION instance (SSL_SESSION *)- 返回:
trueif successful,falseotherwise.
-
free
public static void free(long session)
See SSL_SESSION_free.- 参数:
session- the SSL_SESSION instance (SSL_SESSION *)
-
shouldBeSingleUse
public static boolean shouldBeSingleUse(long session)
Will returntrueif the session should only re-used once. See SSL_SESSION_should_be_single_use.- 参数:
session-- 返回:
trueif the session should be re-used once only,falseotherwise.
-
-