Class IdcsMtRoleMapperRxProvider.MtCacheKey

  • Enclosing class:
    IdcsMtRoleMapperRxProvider

    public static class IdcsMtRoleMapperRxProvider.MtCacheKey
    extends Object
    Cache key for multitenant environments. Used when caching user grants. Suitable for use in maps and sets.
    • Constructor Detail

      • MtCacheKey

        protected MtCacheKey​(String idcsTenantId,
                             String idcsAppName,
                             String username)
        New (immutable) cache key.
        Parameters:
        idcsTenantId - IDCS tenant ID
        idcsAppName - IDCS application name
        username - username
      • MtCacheKey

        protected MtCacheKey​(IdcsMtContext idcsMtContext,
                             String username)
        New (immutable) cache key.
        Parameters:
        idcsMtContext - IDCS multitenancy context
        username - username
    • Method Detail

      • idcsTenantId

        public String idcsTenantId()
        IDCS Tenant ID.
        Returns:
        tenant id of the cache record
      • username

        public String username()
        Username.
        Returns:
        username of the cache record
      • idcsAppName

        public String idcsAppName()
        IDCS Application ID.
        Returns:
        application id of the cache record
      • idcsMtContext

        public IdcsMtContext idcsMtContext()
        IDCS Multitenancy context.
        Returns:
        IDCS multitenancy context of the cache record
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object