All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.quarkus.oidc.TokenIntrospectionCache Maven / Gradle / Ivy

Go to download

Secure your applications with OpenID Connect Adapter and IDP such as Keycloak

There is a newer version: 3.17.5
Show newest version
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