class FailedLogin implements Serializable {

    public boolean isLoginBlocked(Long blockingTimeMin) {
        if (blockedTimestamp == null) {
            return false;
        }
        Long elapsedTimeMills = System.currentTimeMillis() - blockedTimestamp.longValue();
        if (elapsedTimeMills <= blockingTimeMin * 60000) {
            return true;
        }
        return false;
    }

      FailedLogin(Integer numAttempts_, Long blockedTimestamp_);

}