public interface SessionCookieParameters
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_COOKIE_DOMAIN
null |
static String |
DEFAULT_COOKIE_NAME
org.baswell.sessioncookie |
static int |
DEFAULT_COOKIE_SIZE_WARNING
4KB
|
static int |
DEFAULT_INACTIVITY_TIMEOUT_SECONDS
-1 |
static int |
DEFAULT_MAX_IN_MEMORY_SESSIONS
-1 |
static int |
DEFAULT_MINIMUM_SECONDS_BETWEEN_SESSION_CACHE_PURGES
15 |
static boolean |
DEFAULT_PURGE_SESSION_CACHE_WITH_BACKGROUND_THREAD
false |
static int |
DEFAULT_SESSION_TIMEOUT_MINUTES
30 |
static String |
DEFAULT_SYMMETRIC_ENCRYPTION_ALGORITHM
AES |
Modifier and Type | Method and Description |
---|---|
default String |
getCookieDomain()
The domain set (
Cookie.setDomain(String) ) on the session cookie. |
default String |
getCookieName()
The name used for the session cookie.
|
default int |
getCookieSizeWarning()
The minimum session cookie value size in bytes for
SessionCookieErrorHandler.onSessionCookieSizeWarning(HttpSession, int) to be called. |
default int |
getInactivityTimeoutSeconds()
The time, in seconds, between client requests that session are allowed to remain active.
|
default int |
getMaxInMemorySessions()
The maximum number of sessions that are cached in memory.
|
default int |
getMinimumSecondsBetweenSessionCachePurges()
The minimum number of seconds between session cache purges.
|
default boolean |
getPurgeSessionCacheWithBackgroundThread()
Indicates if a background thread should be used to removed candidates from the session cache.
|
default int |
getSessionTimeoutMinutes()
The time, in minutes, from creation time that sessions are allowed to remain active.
|
default String |
getSymmetricEncryptionAlgorithm()
The symmetric encryption algorithm used to encrypt and decrypt the session cookie.
|
byte[] |
getSymmetricEncryptionKey()
The symmetric encryption key used to encrypt and decrypt the session cookie.
|
static final int DEFAULT_SESSION_TIMEOUT_MINUTES
30
static final int DEFAULT_INACTIVITY_TIMEOUT_SECONDS
-1
static final int DEFAULT_MAX_IN_MEMORY_SESSIONS
-1
static final boolean DEFAULT_PURGE_SESSION_CACHE_WITH_BACKGROUND_THREAD
false
static final int DEFAULT_MINIMUM_SECONDS_BETWEEN_SESSION_CACHE_PURGES
15
static final String DEFAULT_SYMMETRIC_ENCRYPTION_ALGORITHM
AES
static final String DEFAULT_COOKIE_DOMAIN
null
static final String DEFAULT_COOKIE_NAME
org.baswell.sessioncookie
static final int DEFAULT_COOKIE_SIZE_WARNING
default int getSessionTimeoutMinutes()
DEFAULT_SESSION_TIMEOUT_MINUTES
by defaultdefault int getInactivityTimeoutSeconds()
DEFAULT_INACTIVITY_TIMEOUT_SECONDS
by defaultdefault int getMaxInMemorySessions()
DEFAULT_MAX_IN_MEMORY_SESSIONS
by defaultdefault boolean getPurgeSessionCacheWithBackgroundThread()
false
sessions will be removed from the cache on request threads.DEFAULT_PURGE_SESSION_CACHE_WITH_BACKGROUND_THREAD
by defaultdefault int getMinimumSecondsBetweenSessionCachePurges()
DEFAULT_MINIMUM_SECONDS_BETWEEN_SESSION_CACHE_PURGES
by defaultdefault String getSymmetricEncryptionAlgorithm()
DEFAULT_SYMMETRIC_ENCRYPTION_ALGORITHM
by defaultbyte[] getSymmetricEncryptionKey() throws GeneralSecurityException
GeneralSecurityException
- if the key cannot be generateddefault String getCookieDomain()
Cookie.setDomain(String)
) on the session cookie.DEFAULT_COOKIE_DOMAIN
by defaultdefault String getCookieName()
DEFAULT_COOKIE_NAME
by defaultdefault int getCookieSizeWarning()
SessionCookieErrorHandler.onSessionCookieSizeWarning(HttpSession, int)
to be called.DEFAULT_COOKIE_SIZE_WARNING
by defaultSessionCookieErrorHandler.onSessionCookieSizeWarning(HttpSession, int)
Copyright © 2017. All rights reserved.