protected Collection<Realm> getRealms() {
        return this.realms;
    }
Returns the realm(s) used by this {@code Authenticator} during an authentication attempt.

@return the realm(s) used by this {@code Authenticator} during an authentication attempt.
core/src/main/java/org/apache/shiro/authc/pam/ModularRealmAuthenticator.java