RealmFactory.getRealms

Returns a collection of {@link Realm Realm} instances that will be used to construct the application's SecurityManager instance.

<p>The order of the collection is important. The {@link hunt.shiro.mgt.SecurityManager SecurityManager} implementation will consult the Realms during authentication (log-in) and authorization (access control) operations in the collection's <b>iteration order</b>. That is, the resulting collection's {@link java.util.Iterator Iterator} determines the order in which Realms are used.

@return the <code>Collection</code> of Realms that the application's <code>SecurityManager</code> will use for security data access.

interface RealmFactory
getRealms
()

Meta