@Test public void getExpiredFromAccessToken() { long expireInSeconds = 47299; Instant minExpireDate = getCurrentInstant().plusSeconds(expireInSeconds); OAuth2TokenResponse accessToken = new OAuth2TokenResponse(null, expireInSeconds, null); Instant maxExpireDate = getCurrentInstant().plusSeconds(expireInSeconds); assertThat(accessToken.getExpiredAt(), allOf(OrderingComparison.greaterThanOrEqualTo(minExpireDate), OrderingComparison.lessThanOrEqualTo(maxExpireDate))); }
public Instant getExpiredAt() { return Instant.ofEpochMilli(expiredTimeMillis); }
OAuth2TokenResponse { public Instant getExpiredAt() { return Instant.ofEpochMilli(expiredTimeMillis); } }
OAuth2TokenResponse { public Instant getExpiredAt() { return Instant.ofEpochMilli(expiredTimeMillis); } OAuth2TokenResponse(@Nullable String accessToken, long expiredInSeconds, @Nullable String refreshToken); }
OAuth2TokenResponse { public Instant getExpiredAt() { return Instant.ofEpochMilli(expiredTimeMillis); } OAuth2TokenResponse(@Nullable String accessToken, long expiredInSeconds, @Nullable String refreshToken); @Nullable String getAccessToken(); @Nullable DecodedJwt getDecodedAccessToken(); @Deprecated Date getExpiredAtDate(); Instant getExpiredAt(); @Nullable String getRefreshToken(); @Override String toString(); }
OAuth2TokenResponse { public Instant getExpiredAt() { return Instant.ofEpochMilli(expiredTimeMillis); } OAuth2TokenResponse(@Nullable String accessToken, long expiredInSeconds, @Nullable String refreshToken); @Nullable String getAccessToken(); @Nullable DecodedJwt getDecodedAccessToken(); @Deprecated Date getExpiredAtDate(); Instant getExpiredAt(); @Nullable String getRefreshToken(); @Override String toString();  }