Backend API. Server-side code: this runs in a Codename One backend, not in the app on the device.

public interface TenantFilter.PrincipalTenant

Maps an authenticated principal to its tenant, for authenticated.

Methods

public abstract String tenantOf(Authentication authentication) throws ExceptionThe tenant of authentication, or null when it has none.

Method details

tenantOf

public abstract String tenantOf(Authentication authentication) throws Exception
The tenant of authentication, or null when it has none.

Parameters

authentication Authentication
the authenticated principal

Returns

the tenant identifier

Throws

Exception
when the lookup fails