Package io.quarkus.oidc.runtime
Class DefaultTokenStateManager
- java.lang.Object
-
- io.quarkus.oidc.runtime.DefaultTokenStateManager
-
- All Implemented Interfaces:
TokenStateManager
@ApplicationScoped public class DefaultTokenStateManager extends Object implements TokenStateManager
-
-
Constructor Summary
Constructors Constructor Description DefaultTokenStateManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description io.smallrye.mutiny.Uni<String>
createTokenState(io.vertx.ext.web.RoutingContext routingContext, OidcTenantConfig oidcConfig, AuthorizationCodeTokens tokens, OidcRequestContext<String> requestContext)
Convert the authorization code flow tokens into a token state.io.smallrye.mutiny.Uni<Void>
deleteTokens(io.vertx.ext.web.RoutingContext routingContext, OidcTenantConfig oidcConfig, String tokenState, OidcRequestContext<Void> requestContext)
Delete the token state.io.smallrye.mutiny.Uni<AuthorizationCodeTokens>
getTokens(io.vertx.ext.web.RoutingContext routingContext, OidcTenantConfig oidcConfig, String tokenState, OidcRequestContext<AuthorizationCodeTokens> requestContext)
Convert the token state into the authorization code flow tokens.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.quarkus.oidc.TokenStateManager
createTokenState, deleteTokens, getTokens
-
-
-
-
Method Detail
-
createTokenState
public io.smallrye.mutiny.Uni<String> createTokenState(io.vertx.ext.web.RoutingContext routingContext, OidcTenantConfig oidcConfig, AuthorizationCodeTokens tokens, OidcRequestContext<String> requestContext)
Description copied from interface:TokenStateManager
Convert the authorization code flow tokens into a token state.- Specified by:
createTokenState
in interfaceTokenStateManager
- Parameters:
routingContext
- the request contextoidcConfig
- the tenant configurationtokens
- the authorization code flow tokensrequestContext
- the request context- Returns:
- the token state
-
getTokens
public io.smallrye.mutiny.Uni<AuthorizationCodeTokens> getTokens(io.vertx.ext.web.RoutingContext routingContext, OidcTenantConfig oidcConfig, String tokenState, OidcRequestContext<AuthorizationCodeTokens> requestContext)
Description copied from interface:TokenStateManager
Convert the token state into the authorization code flow tokens.- Specified by:
getTokens
in interfaceTokenStateManager
- Parameters:
routingContext
- the request contextoidcConfig
- the tenant configurationtokenState
- the token staterequestContext
- the request context- Returns:
- the authorization code flow tokens
-
deleteTokens
public io.smallrye.mutiny.Uni<Void> deleteTokens(io.vertx.ext.web.RoutingContext routingContext, OidcTenantConfig oidcConfig, String tokenState, OidcRequestContext<Void> requestContext)
Description copied from interface:TokenStateManager
Delete the token state.- Specified by:
deleteTokens
in interfaceTokenStateManager
- Parameters:
routingContext
- the request contextoidcConfig
- the tenant configurationtokenState
- the token state
-
-