Package io.quarkus.oidc.client.runtime
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 Summary
Constructors Constructor Description OidcClientImpl(io.vertx.mutiny.ext.web.client.WebClient client, String tokenRequestUri, String tokenRevokeUri, String grantType, io.vertx.mutiny.core.MultiMap tokenGrantParams, io.vertx.mutiny.core.MultiMap commonRefreshGrantParams, OidcClientConfig oidcClientConfig)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()io.smallrye.mutiny.Uni<Tokens>getTokens(Map<String,String> additionalGrantParameters)Get the grant access and refresh tokens with additional grant parameters.io.smallrye.mutiny.Uni<Tokens>refreshTokens(String refreshToken)Refresh and return a new pair of access and refresh tokens.io.smallrye.mutiny.Uni<Boolean>revokeAccessToken(String accessToken)Revoke the access token.-
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.client.OidcClient
getTokens
-
-
-
-
Constructor Detail
-
OidcClientImpl
public OidcClientImpl(io.vertx.mutiny.ext.web.client.WebClient client, String tokenRequestUri, String tokenRevokeUri, String grantType, io.vertx.mutiny.core.MultiMap tokenGrantParams, io.vertx.mutiny.core.MultiMap commonRefreshGrantParams, OidcClientConfig oidcClientConfig)
-
-
Method Detail
-
getTokens
public io.smallrye.mutiny.Uni<Tokens> getTokens(Map<String,String> additionalGrantParameters)
Description copied from interface:OidcClientGet the grant access and refresh tokens with additional grant parameters.- Specified by:
getTokensin interfaceOidcClient- Parameters:
additionalGrantParameters- additional grant parameters- Returns:
- Uni
-
refreshTokens
public io.smallrye.mutiny.Uni<Tokens> refreshTokens(String refreshToken)
Description copied from interface:OidcClientRefresh 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:
refreshTokensin interfaceOidcClient- Parameters:
refreshToken- refresh token- Returns:
- Uni
-
revokeAccessToken
public io.smallrye.mutiny.Uni<Boolean> revokeAccessToken(String accessToken)
Description copied from interface:OidcClientRevoke the access token.- Specified by:
revokeAccessTokenin interfaceOidcClient- 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:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
-