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
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface io.quarkus.oidc.TokenStateManager
TokenStateManager.CreateTokenStateRequestContext, TokenStateManager.DeleteTokensRequestContext, TokenStateManager.GetTokensRequestContext
-
-
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, TokenStateManager.CreateTokenStateRequestContext 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, TokenStateManager.DeleteTokensRequestContext requestContext)Delete the token state.io.smallrye.mutiny.Uni<AuthorizationCodeTokens>getTokens(io.vertx.ext.web.RoutingContext routingContext, OidcTenantConfig oidcConfig, String tokenState, TokenStateManager.GetTokensRequestContext 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, TokenStateManager.CreateTokenStateRequestContext requestContext)
Description copied from interface:TokenStateManagerConvert the authorization code flow tokens into a token state.- Specified by:
createTokenStatein 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, TokenStateManager.GetTokensRequestContext requestContext)
Description copied from interface:TokenStateManagerConvert the token state into the authorization code flow tokens.- Specified by:
getTokensin interfaceTokenStateManager- Parameters:
routingContext- the request contextoidcConfig- the tenant configurationrequestContext- 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, TokenStateManager.DeleteTokensRequestContext requestContext)
Description copied from interface:TokenStateManagerDelete the token state.- Specified by:
deleteTokensin interfaceTokenStateManager- Parameters:
routingContext- the request contextoidcConfig- the tenant configuration
-
-