Class IdcsMtRoleMapperProvider.MtCacheKey

java.lang.Object
io.helidon.security.providers.idcs.mapper.IdcsMtRoleMapperProvider.MtCacheKey
Enclosing class:
IdcsMtRoleMapperProvider

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

    • 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 Details

    • 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
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object