Package org.forgerock.openam.cts
Class CoreTokenConfig
- java.lang.Object
-
- org.forgerock.openam.cts.CoreTokenConfig
-
public class CoreTokenConfig extends Object
Represents any configuration required for the Core Token Service.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddListener(ConfigListener listener)Register a listener to be notified whenCoreTokenConfigchanges.intgetCleanupPageSize()intgetExpiredSessionsSearchLimit()The Expired Session Search Limit.intgetRunPeriod()longgetSessionExpiryGracePeriod(TimeUnit timeUnit)intgetSleepInterval()StringgetUserId(InternalSession session)Extract the UserId from the InternalSession.booleanisAttributeNamesCompressed()booleanisCaseSensitiveUserId()booleanisCoreTokenResourceEnabled()booleanisTokenCompressed()booleanisTokenEncrypted()
-
-
-
Method Detail
-
getExpiredSessionsSearchLimit
public int getExpiredSessionsSearchLimit()
The Expired Session Search Limit.- Returns:
- A value greater than zero.
-
isCaseSensitiveUserId
public boolean isCaseSensitiveUserId()
- Returns:
- True if the User Id is case sensitive.
-
getSessionExpiryGracePeriod
public long getSessionExpiryGracePeriod(TimeUnit timeUnit)
- Returns:
- The time period in the given time units before a Session will timeout.
-
getRunPeriod
public int getRunPeriod()
- Returns:
- The period in milliseconds for how often the clean up thread of the Core Token Service should run to check for expired Tokens.
-
isCoreTokenResourceEnabled
public boolean isCoreTokenResourceEnabled()
-
getSleepInterval
public int getSleepInterval()
- Returns:
- The interval in milliseconds for the
-
getUserId
public String getUserId(InternalSession session)
Extract the UserId from the InternalSession. Account for some foibles around the user id. In particular- Parameters:
session- Non null.- Returns:
- Non null user id.
-
isTokenEncrypted
public boolean isTokenEncrypted()
- Returns:
- True if the Binary object stored for each Token should be encrypted by the Core Token Service.
-
isTokenCompressed
public boolean isTokenCompressed()
- Returns:
- True if the tokens within the Core Token Service can be compressed. False is the default.
-
isAttributeNamesCompressed
public boolean isAttributeNamesCompressed()
- Returns:
- True if The Token Attribute Names should be compressed as well. False by default.
-
getCleanupPageSize
public int getCleanupPageSize()
- Returns:
- The LDAP Query Page size in Tokens that will be deleted by the CTS Reaper.
-
addListener
public void addListener(ConfigListener listener)
Register a listener to be notified whenCoreTokenConfigchanges.- Parameters:
listener- the event listener to call whenCoreTokenConfigchanges.
-
-