Skip to content

Commit

Permalink
7
Browse files Browse the repository at this point in the history
  • Loading branch information
xinyiZzz committed Sep 21, 2023
1 parent bb55cd4 commit 1b44929
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,11 @@ public class TokenManagerImpl implements TokenManager {
private static final Logger LOG = LogManager.getLogger(TokenManagerImpl.class);

private final SecureRandom generator = new SecureRandom();
private final int cacheSize;
private final int cacheExpiration;

private LoadingCache<String, SessionState> tokenCache;

public TokenManagerImpl(final int cacheSize, final int cacheExpiration) {
this.cacheSize = cacheSize;
this.cacheExpiration = cacheExpiration;

this.tokenCache = CacheBuilder.newBuilder()
Expand Down Expand Up @@ -109,4 +107,5 @@ private SessionState getSessionState(final String token) {
}

return value;

}
}

0 comments on commit 1b44929

Please sign in to comment.