Package org.wildfly.openssl
Class OpenSSLClientSessionContext
java.lang.Object
org.wildfly.openssl.OpenSSLClientSessionContext
- All Implemented Interfaces:
SSLSessionContext
OpenSSLSessionContext implementation which offers extra methods which
are only useful for the client-side.-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionprotected voidclientSessionCreated(long ssl, long sessionPointer, byte[] sessionId) org.wildfly.openssl.OpenSSLClientSessionContext.ClientSessionKeyEnumeration<byte[]> getIds()getSession(byte[] bytes) intintbooleanvoidmergeHandshakeSession(SSLSession handshakeSession, byte[] sessionId) voidsetSessionCacheEnabled(boolean enabled) voidsetSessionCacheSize(int size) voidsetSessionTimeout(int seconds) voidsetTicketKeys(byte[] keys) Sets the SSL session ticket keys of this context.stats()Returns the stats of this context.
-
Field Details
-
sessions
protected final Map<org.wildfly.openssl.OpenSSLSessionContext.Key,org.wildfly.openssl.OpenSSlSession> sessions
-
-
Method Details
-
setSessionTimeout
public void setSessionTimeout(int seconds) -
getSessionTimeout
public int getSessionTimeout() -
setSessionCacheSize
public void setSessionCacheSize(int size) -
getSessionCacheSize
public int getSessionCacheSize() -
setSessionCacheEnabled
public void setSessionCacheEnabled(boolean enabled) -
isSessionCacheEnabled
public boolean isSessionCacheEnabled() -
getHandshakeKey
public org.wildfly.openssl.OpenSSLClientSessionContext.ClientSessionKey getHandshakeKey() -
getSession
- Specified by:
getSessionin interfaceSSLSessionContext
-
getIds
- Specified by:
getIdsin interfaceSSLSessionContext
-
setTicketKeys
public void setTicketKeys(byte[] keys) Sets the SSL session ticket keys of this context. -
stats
Returns the stats of this context. -
mergeHandshakeSession
-
clientSessionCreated
protected void clientSessionCreated(long ssl, long sessionPointer, byte[] sessionId)
-