public void setRealms(Collection<Realm> realms) {
        this.realms = realms;
    }
Sets all realms used by this Authenticator, providing PAM (Pluggable Authentication Module) configuration.

@param realms the realms to consult during authentication attempts.
core/src/main/java/org/apache/shiro/authc/pam/ModularRealmAuthenticator.java