public class OpenSSLSessionContext
extends java.lang.Object
implements javax.net.ssl.SSLSessionContext
SSLSessionContext implementation.| Modifier and Type | Method and Description |
|---|---|
java.util.Enumeration<byte[]> |
getIds() |
javax.net.ssl.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 javax.net.ssl.SSLSession getSession(byte[] bytes)
getSession in interface javax.net.ssl.SSLSessionContextpublic java.util.Enumeration<byte[]> getIds()
getIds in interface javax.net.ssl.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 javax.net.ssl.SSLSessionContextpublic int getSessionTimeout()
getSessionTimeout in interface javax.net.ssl.SSLSessionContextpublic void setSessionCacheSize(int size)
setSessionCacheSize in interface javax.net.ssl.SSLSessionContextpublic int getSessionCacheSize()
getSessionCacheSize in interface javax.net.ssl.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-2019 Apache Software Foundation. All Rights Reserved.