Class OidcClientImpl

java.lang.Object
io.quarkus.oidc.client.runtime.OidcClientImpl
All Implemented Interfaces:
OidcClient, Closeable, AutoCloseable

public class OidcClientImpl extends Object implements OidcClient
  • Constructor Details

  • Method Details

    • getTokens

      public io.smallrye.mutiny.Uni<Tokens> getTokens(Map<String,String> additionalGrantParameters)
      Description copied from interface: OidcClient
      Get the grant access and refresh tokens with additional grant parameters.
      Specified by:
      getTokens in interface OidcClient
      Parameters:
      additionalGrantParameters - additional grant parameters
      Returns:
      Uni
    • refreshTokens

      public io.smallrye.mutiny.Uni<Tokens> refreshTokens(String refreshToken, Map<String,String> additionalGrantParameters)
      Description copied from interface: OidcClient
      Refresh and return a new pair of access and refresh tokens. Note a refresh token grant will typically return not only a new access token but also a new refresh token.
      Specified by:
      refreshTokens in interface OidcClient
      Parameters:
      refreshToken - refresh token
      additionalGrantParameters - additional grant parameters
      Returns:
      Uni
    • revokeAccessToken

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

      public void close() throws IOException
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable
      Throws:
      IOException