public boolean isPasswordProtected() {
        return password != null && !password.trim().isEmpty();
    }
Returns true if a user cannot enter without first providing the correct password.

@return true if a user cannot enter without first providing the correct password.
xmppserver/src/main/java/org/jivesoftware/openfire/muc/MUCRoom.java