public boolean isAccountDisabled(String username) {
        LockOutFlag flag = getDisabledStatus(username);
        if (flag == null) {
            return false;
        }
        Date curDate = new Date();
        if (flag.getStartTime() != null && curDate.before(flag.getStartTime())) {
            return false;
        }
        if (flag.getEndTime() != null && curDate.after(flag.getEndTime())) {
            return false;
        }
        return true;
    }
Returns true or false if an account is currently locked out.

@param username Username of account to check on.
@return True or false if the account is currently locked out.
xmppserver/src/main/java/org/jivesoftware/openfire/lockout/LockOutManager.java