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 SSLSessionContext
public Enumeration<byte[]> getIds()
getIds
in interface SSLSessionContext
public 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 SSLSessionContext
public int getSessionTimeout()
getSessionTimeout
in interface SSLSessionContext
public void setSessionCacheSize(int size)
setSessionCacheSize
in interface SSLSessionContext
public int getSessionCacheSize()
getSessionCacheSize
in interface SSLSessionContext
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.