Top Description Constructors Methods
io.netty.internal.tcnative

public final Class SSLSession

extends Object
Class Inheritance

Methods to operate on a SSL_SESSION.

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static native void
free(long
the SSL_SESSION instance (SSL_SESSION *)
session
)

See SSL_SESSION_free.

public static native byte[]

Returns:

the session id as byte array representation obtained via SSL_SESSION_get_id.
getSessionId
(long
the SSL_SESSION instance (SSL_SESSION *)
session
)

See SSL_SESSION_get_id.

public static native long

Returns:

returns the time at which the session was established. The time is given in seconds since the Epoch
getTime
(long
the SSL_SESSION instance (SSL_SESSION *)
session
)

See SSL_SESSION_get_time.

public static native long

Returns:

returns the timeout for the session. The time is given in seconds since the Epoch
getTimeout
(long
the SSL_SESSION instance (SSL_SESSION *)
session
)

See SSL_SESSION_get_timeout.

public static native long

Returns:

returns the timeout for the session before this call. The time is given in seconds since the Epoch
setTimeout
(long
the SSL_SESSION instance (SSL_SESSION *)
session
,
long
timeout in seconds
seconds
)

See SSL_SESSION_set_timeout.

public static native boolean

Returns:

true if the session should be re-used once only, false otherwise.
shouldBeSingleUse
(long session)

Will return true if the session should only re-used once.

public static native boolean

Returns:

true if successful, false otherwise.
upRef
(long
the SSL_SESSION instance (SSL_SESSION *)
session
)

See SSL_SESSION_up_ref.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

SSLSessionback to summary
private SSLSession()

Method Detail

freeback to summary
public static native void free(long session)

See SSL_SESSION_free.

Parameters
session:long

the SSL_SESSION instance (SSL_SESSION *)

getSessionIdback to summary
public static native byte[] getSessionId(long session)

See SSL_SESSION_get_id.

Parameters
session:long

the SSL_SESSION instance (SSL_SESSION *)

Returns:byte[]

the session id as byte array representation obtained via SSL_SESSION_get_id.

getTimeback to summary
public static native long getTime(long session)

See SSL_SESSION_get_time.

Parameters
session:long

the SSL_SESSION instance (SSL_SESSION *)

Returns:long

returns the time at which the session was established. The time is given in seconds since the Epoch

getTimeoutback to summary
public static native long getTimeout(long session)

See SSL_SESSION_get_timeout.

Parameters
session:long

the SSL_SESSION instance (SSL_SESSION *)

Returns:long

returns the timeout for the session. The time is given in seconds since the Epoch

setTimeoutback to summary
public static native long setTimeout(long session, long seconds)

See SSL_SESSION_set_timeout.

Parameters
session:long

the SSL_SESSION instance (SSL_SESSION *)

seconds:long

timeout in seconds

Returns:long

returns the timeout for the session before this call. The time is given in seconds since the Epoch

shouldBeSingleUseback to summary
public static native boolean shouldBeSingleUse(long session)

Will return true if the session should only re-used once. See SSL_SESSION_should_be_single_use.

Returns:boolean

true if the session should be re-used once only, false otherwise.

upRefback to summary
public static native boolean upRef(long session)

See SSL_SESSION_up_ref.

Parameters
session:long

the SSL_SESSION instance (SSL_SESSION *)

Returns:boolean

true if successful, false otherwise.