Interface TenantFilter.PrincipalTenant

Enclosing class:
TenantFilter

public static interface TenantFilter.PrincipalTenant
Maps an authenticated principal to its tenant, for TenantFilter.authenticated(TenantFilter.PrincipalTenant).
  • Method Summary

    Modifier and Type
    Method
    Description
    tenantOf(Authentication authentication)
    The tenant of authentication, or null when it has none.
  • Method Details

    • tenantOf

      String tenantOf(Authentication authentication) throws Exception
      The tenant of authentication, or null when it has none.
      Parameters:
      authentication - the authenticated principal
      Returns:
      the tenant identifier
      Throws:
      Exception - when the lookup fails