public abstract class OpenSslSessionContext extends Object implements SSLSessionContext
SSLSessionContext
implementation.Modifier and Type | Method and Description |
---|---|
Enumeration<byte[]> |
getIds() |
SSLSession |
getSession(byte[] bytes) |
int |
getSessionCacheSize() |
int |
getSessionTimeout() |
boolean |
isSessionCacheEnabled()
Return
true if caching of SSL sessions is enabled, false otherwise. |
void |
setSessionCacheEnabled(boolean enabled)
Enable or disable caching of SSL sessions.
|
void |
setSessionCacheSize(int size) |
void |
setSessionTimeout(int seconds) |
void |
setTicketKeys(byte[] keys)
Deprecated.
|
void |
setTicketKeys(OpenSslSessionTicketKey... keys)
Sets the SSL session ticket keys of this context.
|
OpenSslSessionStats |
stats()
Returns the stats of this context.
|
public void setSessionCacheSize(int size)
setSessionCacheSize
in interface SSLSessionContext
public int getSessionCacheSize()
getSessionCacheSize
in interface SSLSessionContext
public void setSessionTimeout(int seconds)
setSessionTimeout
in interface SSLSessionContext
public int getSessionTimeout()
getSessionTimeout
in interface SSLSessionContext
public SSLSession getSession(byte[] bytes)
getSession
in interface SSLSessionContext
public Enumeration<byte[]> getIds()
getIds
in interface SSLSessionContext
@Deprecated public void setTicketKeys(byte[] keys)
setTicketKeys(OpenSslSessionTicketKey...)
.public void setTicketKeys(OpenSslSessionTicketKey... keys)
public void setSessionCacheEnabled(boolean enabled)
public boolean isSessionCacheEnabled()
true
if caching of SSL sessions is enabled, false
otherwise.public OpenSslSessionStats stats()
Copyright © 2008–2024 The Netty Project. All rights reserved.