public class CachingAccessTokenResolver extends Object implements AccessTokenResolver
CachingAccessTokenResolver is a delegating AccessTokenResolver that uses a write-through cache
to enable fast AccessTokenInfo resolution.| Constructor and Description |
|---|
CachingAccessTokenResolver(TimeService time,
AccessTokenResolver resolver,
PerItemEvictionStrategyCache<String,Promise<AccessTokenInfo,AccessTokenException>> cache)
Builds a
CachingAccessTokenResolver delegating to the given AccessTokenResolver using the given
(pre-configured) cache. |
| Modifier and Type | Method and Description |
|---|---|
Promise<AccessTokenInfo,AccessTokenException> |
resolve(Context context,
String token)
Resolves a given access token against an authorization server.
|
public CachingAccessTokenResolver(TimeService time, AccessTokenResolver resolver, PerItemEvictionStrategyCache<String,Promise<AccessTokenInfo,AccessTokenException>> cache)
CachingAccessTokenResolver delegating to the given AccessTokenResolver using the given
(pre-configured) cache.time - Time service used to compute the token cache time-to-liveresolver - resolver to delegates tocache - access token cachepublic Promise<AccessTokenInfo,AccessTokenException> resolve(Context context, String token)
AccessTokenResolverresolve in interface AccessTokenResolvercontext - Context chain used to keep a relationship between requests (tracking)token - token identifier to be resolvedAccessTokenInfo (well-formed, known by the server),
or by an exceptionCopyright © 2025 Open Identity Platform Community. All rights reserved.