Class OpenSSLSessionContext
- java.lang.Object
- 
- org.apache.tomcat.util.net.openssl.OpenSSLSessionContext
 
- 
- All Implemented Interfaces:
- javax.net.ssl.SSLSessionContext
 
 public class OpenSSLSessionContext extends java.lang.Object implements javax.net.ssl.SSLSessionContextOpenSSL specificSSLSessionContextimplementation.
- 
- 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Enumeration<byte[]>getIds()javax.net.ssl.SSLSessiongetSession(byte[] bytes)intgetSessionCacheSize()intgetSessionTimeout()booleanisSessionCacheEnabled()voidsetSessionCacheEnabled(boolean enabled)Enable or disable caching of SSL sessions.voidsetSessionCacheSize(int size)booleansetSessionIdContext(byte[] sidCtx)Set the context within which session be reused (server side only) See man SSL_CTX_set_session_id_contextvoidsetSessionTimeout(int seconds)voidsetTicketKeys(byte[] keys)Sets the SSL session ticket keys of this context.OpenSSLSessionStatsstats()
 
- 
- 
- 
Method Detail- 
getSessionpublic javax.net.ssl.SSLSession getSession(byte[] bytes) - Specified by:
- getSessionin interface- javax.net.ssl.SSLSessionContext
 
 - 
getIdspublic java.util.Enumeration<byte[]> getIds() - Specified by:
- getIdsin interface- javax.net.ssl.SSLSessionContext
 
 - 
setTicketKeyspublic void setTicketKeys(byte[] keys) Sets the SSL session ticket keys of this context.- Parameters:
- keys- The session ticket keys
 
 - 
setSessionCacheEnabledpublic void setSessionCacheEnabled(boolean enabled) Enable or disable caching of SSL sessions.- Parameters:
- enabled-- trueto enable caching,- falseto disable
 
 - 
isSessionCacheEnabledpublic boolean isSessionCacheEnabled() - Returns:
- trueif caching of SSL sessions is enabled,- falseotherwise.
 
 - 
statspublic OpenSSLSessionStats stats() - Returns:
- The statistics for this context.
 
 - 
setSessionTimeoutpublic void setSessionTimeout(int seconds) - Specified by:
- setSessionTimeoutin interface- javax.net.ssl.SSLSessionContext
 
 - 
getSessionTimeoutpublic int getSessionTimeout() - Specified by:
- getSessionTimeoutin interface- javax.net.ssl.SSLSessionContext
 
 - 
setSessionCacheSizepublic void setSessionCacheSize(int size) - Specified by:
- setSessionCacheSizein interface- javax.net.ssl.SSLSessionContext
 
 - 
getSessionCacheSizepublic int getSessionCacheSize() - Specified by:
- getSessionCacheSizein interface- javax.net.ssl.SSLSessionContext
 
 - 
setSessionIdContextpublic boolean setSessionIdContext(byte[] sidCtx) Set the context within which session be reused (server side only) See man SSL_CTX_set_session_id_context- Parameters:
- 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 name
- Returns:
- trueif success,- falseotherwise.
 
 
- 
 
-