Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Made expiration timestamps public #29

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 12 additions & 3 deletions src/main/java/com/uid2/client/IdentityTokens.java
Original file line number Diff line number Diff line change
Expand Up @@ -79,11 +79,20 @@ boolean hasIdentityExpired(Instant timestamp) {

String getRefreshResponseKey() { return refreshResponseKey; }

Instant getIdentityExpires() { return identityExpires; } //indicates when the advertising token expires
/**
* @return Instant that indicates when the advertising token expires
*/
public Instant getIdentityExpires() { return identityExpires; }

Instant getRefreshExpires() { return refreshExpires; } //indicates when the refresh token expires
/**
* @return Instant that indicates when the refresh token expires
*/
public Instant getRefreshExpires() { return refreshExpires; } //indicates when the refresh token expires

Instant getRefreshFrom() { return refreshFrom; }
/**
* @return Instant that indicates when identity is due for refresh
*/
public Instant getRefreshFrom() { return refreshFrom; }


private IdentityTokens(String advertisingToken, String refreshToken, String refreshResponseKey, Instant identityExpires,
Expand Down