Package io.quarkus.oidc
Interface TokenIntrospectionCache
- All Known Implementing Classes:
DefaultTokenIntrospectionUserInfoCache
public interface TokenIntrospectionCache
Token introspection cache.
-
Method Summary
Modifier and TypeMethodDescriptionio.smallrye.mutiny.Uni<Void>
addIntrospection
(String token, TokenIntrospection introspection, OidcTenantConfig oidcConfig, OidcRequestContext<Void> requestContext) Add a newTokenIntrospection
result to the cache.io.smallrye.mutiny.Uni<TokenIntrospection>
getIntrospection
(String token, OidcTenantConfig oidcConfig, OidcRequestContext<TokenIntrospection> requestContext) Get the cachedTokenIntrospection
result.
-
Method Details
-
addIntrospection
io.smallrye.mutiny.Uni<Void> addIntrospection(String token, TokenIntrospection introspection, OidcTenantConfig oidcConfig, OidcRequestContext<Void> requestContext) Add a newTokenIntrospection
result to the cache.- Parameters:
token
- the token which has been introspectedintrospection
- the token introspection resultoidcConfig
- the tenant configurationrequestContext
- the request context which can be used to run the blocking tasks
-
getIntrospection
io.smallrye.mutiny.Uni<TokenIntrospection> getIntrospection(String token, OidcTenantConfig oidcConfig, OidcRequestContext<TokenIntrospection> requestContext) Get the cachedTokenIntrospection
result.- Parameters:
token
- the token which has to be introspectedoidcConfig
- the tenant configurationrequestContext
- the request context which can be used to run the blocking tasks
-