Class OidcProviderClientImpl

java.lang.Object
io.quarkus.oidc.runtime.OidcProviderClientImpl
All Implemented Interfaces:
OidcProviderClient, Closeable, AutoCloseable

public class OidcProviderClientImpl extends Object implements OidcProviderClient, Closeable
  • Method Details

    • setOidcProvider

      void setOidcProvider(OidcProvider oidcProvider)
    • getMetadata

    • getJsonWebKeySet

      io.smallrye.mutiny.Uni<JsonWebKeySet> getJsonWebKeySet(io.quarkus.oidc.common.OidcRequestContextProperties contextProperties)
    • getUserInfo

      public io.smallrye.mutiny.Uni<UserInfo> getUserInfo(String accessToken)
      Description copied from interface: OidcProviderClient
      Get UserInfo.
      Specified by:
      getUserInfo in interface OidcProviderClient
      Parameters:
      accessToken - access token which is required to access a UserInfo endpoint.
      Returns:
      Uni UserInfo
    • introspectAccessToken

      public io.smallrye.mutiny.Uni<TokenIntrospection> introspectAccessToken(String token)
      Description copied from interface: OidcProviderClient
      Introspect the access token.
      Specified by:
      introspectAccessToken in interface OidcProviderClient
      Parameters:
      token - access oken which must be introspected.
      Returns:
      Uni TokenIntrospection
    • pushedAuthorizationRequest

      final io.smallrye.mutiny.Uni<String> pushedAuthorizationRequest(String codeFlowParams)
    • getAuthorizationCodeTokens

      io.smallrye.mutiny.Uni<AuthorizationCodeTokens> getAuthorizationCodeTokens(String code, String redirectUri, String codeVerifier)
    • refreshAuthorizationCodeTokens

      io.smallrye.mutiny.Uni<AuthorizationCodeTokens> refreshAuthorizationCodeTokens(String refreshToken)
    • revokeAccessToken

      public io.smallrye.mutiny.Uni<Boolean> revokeAccessToken(String accessToken)
      Description copied from interface: OidcProviderClient
      Revoke the access token.
      Specified by:
      revokeAccessToken in interface OidcProviderClient
      Parameters:
      accessToken - access token which needs to be revoked.
      Returns:
      Uni true if the access token has been revoked or found already being invalidated, false if the access token can not be currently revoked in which case a revocation request might be retried.
    • revokeRefreshToken

      public io.smallrye.mutiny.Uni<Boolean> revokeRefreshToken(String refreshToken)
      Description copied from interface: OidcProviderClient
      Revoke the refresh token.
      Specified by:
      revokeRefreshToken in interface OidcProviderClient
      Parameters:
      refreshToken - refresh token which needs to be revoked.
      Returns:
      Uni true if the refresh token has been revoked or found already being invalidated, false if the refresh token can not be currently revoked in which case a revocation request might be retried.
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable
    • getClientJwtKey

      Key getClientJwtKey()
    • getClientSecret

      String getClientSecret()
    • getVertx

      io.vertx.core.Vertx getVertx()
    • getWebClient

      public io.vertx.mutiny.ext.web.client.WebClient getWebClient()
    • isIntrospection

      static boolean isIntrospection(io.quarkus.oidc.runtime.OidcProviderClientImpl.TokenOperation op)
    • of

      static io.smallrye.mutiny.Uni<OidcProviderClientImpl> of(io.vertx.mutiny.ext.web.client.WebClient client, io.vertx.core.Vertx vertx, OidcConfigurationMetadata metadata, OidcTenantConfig oidcConfig, Map<io.quarkus.oidc.common.OidcEndpoint.Type,List<io.quarkus.oidc.common.OidcRequestFilter>> requestFilters, Map<io.quarkus.oidc.common.OidcEndpoint.Type,List<io.quarkus.oidc.common.OidcResponseFilter>> responseFilters)
    • getClientOrJwtSecret

      String getClientOrJwtSecret()