public final class OpenSSLServerSessionContext extends OpenSSLSessionContext
OpenSSLSessionContext
implementation which offers extra methods which
are only useful for the server-side.Modifier and Type | Method and Description |
---|---|
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) |
getIds, getSession, setTicketKeys, stats
public void setSessionTimeout(int seconds)
public int getSessionTimeout()
public void setSessionCacheSize(int size)
public int getSessionCacheSize()
public void setSessionCacheEnabled(boolean enabled)
OpenSSLSessionContext
setSessionCacheEnabled
in class OpenSSLSessionContext
enabled
- true
to enable caching, false
to disablepublic boolean isSessionCacheEnabled()
isSessionCacheEnabled
in class OpenSSLSessionContext
true
if caching of SSL sessions is enabled, false
otherwise.public 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-2016 Apache Software Foundation. All Rights Reserved.