- All Known Implementing Classes:
public interface RealmFactoryEnables Shiro end-users to configure and initialize one or more
Realminstances in any manner desired. This interface exists to support environments where end-users may not wish to use Shiro's default text-based configuration to create and configure realms, and instead wish to retrieve a realm configured in a proprietary manner. An implementation of this interface can access that proprietary mechanism to retrieve the already-created Realms.
Realminstances returned will used to construct the application's
getRealmsReturns a collection of
Realminstances that will be used to construct the application's SecurityManager instance.
The order of the collection is important. The
SecurityManagerimplementation will consult the Realms during authentication (log-in) and authorization (access control) operations in the collection's iteration order. That is, the resulting collection's
Iteratordetermines the order in which Realms are used.
Collectionof Realms that the application's
SecurityManagerwill use for security data access.