Top Description Fields Constructors Methods
io.netty.handler.ssl

public final Class OpenSslServerSessionContext

extends OpenSslSessionContext
Class Inheritance
Imports
io.netty.internal.tcnative.SSL, .SSLContext, java.util.concurrent.locks.Lock

OpenSslSessionContext implementation which offers extra methods which are only useful for the server-side.

Field Summary

Inherited from io.netty.handler.ssl.OpenSslSessionContext:
context

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public boolean

Returns:

true if success, false otherwise.
setSessionIdContext
(byte[]
can be any kind of binary data, it is therefore possible to use e.g. the name of the application and/or the hostname and/or service name
sidCtx
)

Set the context within which session be reused (server side only) See man SSL_CTX_set_session_id_context

Inherited from io.netty.handler.ssl.OpenSslSessionContext:
destroygetIdsgetSessiongetSessionCacheSizegetSessionTimeoutisInCacheisSessionCacheEnabledremoveFromCachesetSessionCacheEnabledsetSessionCacheSizesetSessionFromCachesetSessionTimeoutsetTicketKeyssetTicketKeysstatsuseKeyManager

Constructor Detail

OpenSslServerSessionContextback to summary
pack-priv OpenSslServerSessionContext(ReferenceCountedOpenSslContext context, OpenSslKeyMaterialProvider provider)

Method Detail

setSessionIdContextback to summary
public boolean setSessionIdContext(byte[] sidCtx)

Set the context within which session be reused (server side only) See man SSL_CTX_set_session_id_context

Parameters
sidCtx:byte[]

can be any kind of binary data, it is therefore possible to use e.g. the name of the application and/or the hostname and/or service name

Returns:boolean

true if success, false otherwise.