io.quarkus.oidc.TokenIntrospectionCache Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of quarkus-oidc Show documentation
Show all versions of quarkus-oidc Show documentation
Secure your applications with OpenID Connect Adapter and IDP such as Keycloak
package io.quarkus.oidc;
import io.smallrye.mutiny.Uni;
/**
* Token introspection cache.
*/
public interface TokenIntrospectionCache {
/**
* Add a new {@link TokenIntrospection} result to the cache.
*
* @param token the token which has been introspected
* @param introspection the token introspection result
* @param oidcConfig the tenant configuration
* @param requestContext the request context which can be used to run the blocking tasks
*/
Uni addIntrospection(String token, TokenIntrospection introspection, OidcTenantConfig oidcConfig,
OidcRequestContext requestContext);
/**
* Get the cached {@link TokenIntrospection} result.
*
* @param token the token which has to be introspected
* @param oidcConfig the tenant configuration
* @param requestContext the request context which can be used to run the blocking tasks
*/
Uni getIntrospection(String token, OidcTenantConfig oidcConfig,
OidcRequestContext requestContext);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy