Class CoreTokenConfig


  • public class CoreTokenConfig
    extends Object
    Represents any configuration required for the Core Token Service.
    • 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.