@Test public void testNewAuthTokenExpiration() { AuthToken token = new AuthToken("token_value"); assert !token.isExpired(); }
public boolean isExpired() { return now().getTime() - receivedAt.getTime() > DAYS.toMillis(10); }
AuthToken { public boolean isExpired() { return now().getTime() - receivedAt.getTime() > DAYS.toMillis(10); } }
AuthToken { public boolean isExpired() { return now().getTime() - receivedAt.getTime() > DAYS.toMillis(10); } AuthToken(String value); }
AuthToken { public boolean isExpired() { return now().getTime() - receivedAt.getTime() > DAYS.toMillis(10); } AuthToken(String value); String getValue(); Date getReceivedAt(); boolean isExpired(); String toHeaderString(); }
AuthToken { public boolean isExpired() { return now().getTime() - receivedAt.getTime() > DAYS.toMillis(10); } AuthToken(String value); String getValue(); Date getReceivedAt(); boolean isExpired(); String toHeaderString();  }