public interface ITenantProvider extends IProvider
IProvider.init(Map, String)
will be called once per configured instance. While the system is running
getTenantId(IAccount)
will be called as accounts are logged on to. The IProvider.destroy()
method will be called at
system shutdown. It is possible that multiple instances of the provider are created for a single namespace, this occurs when more
than one CAM AAA service exists on the machine.Modifier and Type | Method and Description |
---|---|
java.lang.String |
getTenantId(IAccount account)
Any Unicode character is allowed in a tenantID, with the exception of tabs, carriage returns, and line feeds.
|
java.lang.String getTenantId(IAccount account) throws UnrecoverableException
account
- The account that has been logged on to.UnrecoverableException
- An exception occurred while determining which tenant the account belongs to.