public boolean hasExpired() { if (expires == null) { return false; } Date now = new Date(); return now.after(expires); }