public abstract class OpenSslSessionContext
extends java.lang.Object
implements javax.net.ssl.SSLSessionContext
SSLSessionContext
implementation.限定符和类型 | 方法和说明 |
---|---|
java.util.Enumeration<byte[]> |
getIds() |
javax.net.ssl.SSLSession |
getSession(byte[] bytes) |
int |
getSessionCacheSize() |
int |
getSessionTimeout() |
boolean |
isSessionCacheEnabled()
Return
true if caching of SSL sessions is enabled, false otherwise. |
void |
setSessionCacheEnabled(boolean enabled)
Enable or disable caching of SSL sessions.
|
void |
setSessionCacheSize(int size) |
void |
setSessionTimeout(int seconds) |
void |
setTicketKeys(byte[] keys)
|
void |
setTicketKeys(OpenSslSessionTicketKey... keys)
Sets the SSL session ticket keys of this context.
|
OpenSslSessionStats |
stats()
Returns the stats of this context.
|
public void setSessionCacheSize(int size)
setSessionCacheSize
在接口中 javax.net.ssl.SSLSessionContext
public int getSessionCacheSize()
getSessionCacheSize
在接口中 javax.net.ssl.SSLSessionContext
public void setSessionTimeout(int seconds)
setSessionTimeout
在接口中 javax.net.ssl.SSLSessionContext
public int getSessionTimeout()
getSessionTimeout
在接口中 javax.net.ssl.SSLSessionContext
public javax.net.ssl.SSLSession getSession(byte[] bytes)
getSession
在接口中 javax.net.ssl.SSLSessionContext
public java.util.Enumeration<byte[]> getIds()
getIds
在接口中 javax.net.ssl.SSLSessionContext
@Deprecated public void setTicketKeys(byte[] keys)
public void setTicketKeys(OpenSslSessionTicketKey... keys)
public void setSessionCacheEnabled(boolean enabled)
public boolean isSessionCacheEnabled()
true
if caching of SSL sessions is enabled, false
otherwise.public OpenSslSessionStats stats()