public void setRealms(Collection<Realm> realms) {
        this.realms = realms;
        applyPermissionResolverToRealms();
        applyRolePermissionResolverToRealms();
    }
Sets the realms wrapped by this <code>Authorizer</code> which are consulted during an authorization check.

@param realms the realms wrapped by this <code>Authorizer</code> which are consulted during an authorization check.
core/src/main/java/org/apache/shiro/authz/ModularRealmAuthorizer.java