public 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() |
void |
setSessionCacheEnabled(boolean enabled)
Enable or disable caching of SSL sessions.
|
void |
setSessionCacheSize(int size) |
boolean |
setSessionIdContext(byte[] sidCtx)
Set the context within which session be reused (server side only)
See
man SSL_CTX_set_session_id_context
|
void |
setSessionTimeout(int seconds) |
void |
setTicketKeys(byte[] keys)
Sets the SSL session ticket keys of this context.
|
OpenSSLSessionStats |
stats() |
public SSLSession getSession(byte[] bytes)
getSession in interface SSLSessionContextpublic Enumeration<byte[]> getIds()
getIds in interface SSLSessionContextpublic void setTicketKeys(byte[] keys)
keys - The session ticket keyspublic void setSessionCacheEnabled(boolean enabled)
enabled - true to enable caching, false to disablepublic boolean isSessionCacheEnabled()
true if caching of SSL sessions is enabled, false
otherwise.public OpenSSLSessionStats stats()
public void setSessionTimeout(int seconds)
setSessionTimeout in interface SSLSessionContextpublic int getSessionTimeout()
getSessionTimeout in interface SSLSessionContextpublic void setSessionCacheSize(int size)
setSessionCacheSize in interface SSLSessionContextpublic int getSessionCacheSize()
getSessionCacheSize in interface SSLSessionContextpublic boolean setSessionIdContext(byte[] sidCtx)
sidCtx - 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 nametrue if success, false otherwise.Copyright © 2000-2022 Apache Software Foundation. All Rights Reserved.