public boolean isValidDomain(String domain) {
        // Check if the specified domain is contained in any of the validated domains
        for (String validatedDomain : getValidatedDomains()) {
            if (domain.equals(validatedDomain)) {
                return true;
            }
        }
        return false;
    }
Returns true if the specified domain has been validated for this session. The remote
server should send a "db:result" packet for registering new subdomains or even
virtual hosts.<p>

In the spirit of being flexible we allow remote servers to not register subdomains
and even so consider subdomains that include the server domain in their domain part
as valid domains.

@param domain the domain to validate.
@return true if the specified domain has been validated for this session.
xmppserver/src/main/java/org/jivesoftware/openfire/session/LocalIncomingServerSession.java