@Singleton public class SessionServiceConfig extends Object
Modifier and Type | Field and Description |
---|---|
static String |
AM_SESSION_SERVICE_NAME |
Modifier and Type | Method and Description |
---|---|
void |
addListener(ConfigListener listener)
Register a listener to be notified when
SessionServiceConfig changes. |
long |
getApplicationMaxCachingTime()
Returns value of SystemProperty "com.sun.identity.session.application.maxCacheTime" (minutes).
|
String |
getConstraintHandler()
Returns amSession.xml property "iplanet-am-session-constraint-handler".
|
String |
getHttpSessionOwnerListPropertyName() |
String |
getHttpSessionPropertyName() |
String |
getHttpSessionTrackingCookieName()
Returns the name of the cookie/URL parameter used by J2EE container for
session tracking (currently hardcoded to "JSESSIONID")
|
JwtSessionMapper |
getJwtSessionMapper() |
int |
getMaxSessionCacheSize()
The maximum number of sessions to cache in the internal session cache.
|
long |
getMaxSessionCacheTime()
The maximum time of cache for internal session in the internal session cache.
|
int |
getMaxSessionListSize()
Returns value of amSession.xml property "iplanet-am-session-max-session-list-size".
|
int |
getNotificationThreadPoolSize()
Returns value of SystemProperty "com.iplanet.am.notification.threadpool.size".
|
int |
getNotificationThreadPoolThreshold()
Returns value of SystemProperty "com.iplanet.am.notification.threadpool.threshold".
|
String |
getSecurityCookieName() |
int |
getSessionBlacklistCacheSize()
Maximum number of blacklisted sessions to cache in memory on each server.
|
long |
getSessionBlacklistPollInterval(TimeUnit unit)
The interval at which to poll for changes to the session blacklist.
|
long |
getSessionBlacklistPurgeDelay(TimeUnit unit)
Amount of time to keep sessions in the blacklist beyond their expiry time to account for clock skew.
|
long |
getSessionFailoverClusterStateCheckPeriod()
Returns value of amSession.xml property "com.iplanet.am.session.failover.cluster.stateCheck.period" (milliseconds).
|
int |
getSessionFailoverClusterStateCheckTimeout()
Returns value of amSession.xml property "com.iplanet.am.session.failover.cluster.stateCheck.timeout" (milliseconds).
|
long |
getSessionRetrievalTimeout()
Returns value of amSession.xml property "iplanet-am-session-session-list-retrieval-timeout" (seconds).
|
Set<String> |
getTimeoutHandlers()
Returns values of amSession.xml property "openam-session-timeout-handler-list".
|
boolean |
isCookieEncodingEnabled()
Returns true if SystemProperty "com.iplanet.am.cookie.encode" is true.
|
boolean |
isDenyLoginIfDBIsDown()
Returns true if amSession.xml property "iplanet-am-session-deny-login-if-db-is-down" is "YES" (case insensitive).
|
boolean |
isLoggingEnabled()
Returns true if SystemProperty "com.iplanet.am.logstatus" is "ACTIVE" (case insensitive).
|
boolean |
isReturnAppSessionEnabled()
Returns value of SystemProperty "com.sun.identity.session.returnAppSession".
|
boolean |
isSendPropertyNotification(String key)
Returns true if property change notifications are enabled for the specified property.
|
boolean |
isSessionBlacklistingEnabled()
Whether session blacklisting is enabled for stateless session logout.
|
boolean |
isSessionConstraintEnabled()
Returns true if amSession.xml property "iplanet-am-session-enable-session-constraint" is "ON" (case insensitive).
|
public static final String AM_SESSION_SERVICE_NAME
public String getConstraintHandler()
QuotaExhaustionAction
.
Defaults to DestroyOldestAction
.QuotaExhaustionAction
,
DestroyOldestAction
public boolean isDenyLoginIfDBIsDown()
public boolean isSessionConstraintEnabled()
public String getHttpSessionPropertyName()
public String getHttpSessionOwnerListPropertyName()
public String getSecurityCookieName()
public int getMaxSessionCacheSize()
public long getMaxSessionCacheTime()
public boolean isLoggingEnabled()
public String getHttpSessionTrackingCookieName()
public boolean isCookieEncodingEnabled()
public int getNotificationThreadPoolSize()
public int getNotificationThreadPoolThreshold()
public boolean isReturnAppSessionEnabled()
public Set<String> getTimeoutHandlers()
SessionTimeoutHandler
.SessionTimeoutHandler
public long getApplicationMaxCachingTime()
public long getSessionRetrievalTimeout()
public int getMaxSessionListSize()
public boolean isSendPropertyNotification(String key)
key
- Name of the property to checkpublic JwtSessionMapper getJwtSessionMapper()
public int getSessionFailoverClusterStateCheckTimeout()
public long getSessionFailoverClusterStateCheckPeriod()
public boolean isSessionBlacklistingEnabled()
public int getSessionBlacklistCacheSize()
public long getSessionBlacklistPollInterval(TimeUnit unit)
unit
- the desired time unit for the poll interval.public long getSessionBlacklistPurgeDelay(TimeUnit unit)
unit
- the desired time unit for the purge delay.public void addListener(ConfigListener listener)
SessionServiceConfig
changes.listener
- the event listener to call when SessionServiceConfig
changes.Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.