Package io.quarkus.oidc.client.runtime
Class OidcClientImpl
java.lang.Object
io.quarkus.oidc.client.runtime.OidcClientImpl
- All Implemented Interfaces:
OidcClient
,Closeable
,AutoCloseable
-
Constructor Summary
ConstructorDescriptionOidcClientImpl
(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, Map<OidcEndpoint.Type, List<OidcRequestFilter>> filters) -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
io.smallrye.mutiny.Uni<Tokens>
Get the grant access and refresh tokens with additional grant parameters.io.smallrye.mutiny.Uni<Tokens>
refreshTokens
(String refreshToken, Map<String, String> additionalGrantParameters) Refresh and return a new pair of access and refresh tokens.io.smallrye.mutiny.Uni<Boolean>
revokeAccessToken
(String accessToken, Map<String, String> additionalParameters) 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, refreshTokens, revokeAccessToken
-
Constructor Details
-
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, Map<OidcEndpoint.Type, List<OidcRequestFilter>> filters)
-
-
Method Details
-
getTokens
Description copied from interface:OidcClient
Get the grant access and refresh tokens with additional grant parameters.- Specified by:
getTokens
in interfaceOidcClient
- 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 interfaceOidcClient
- Parameters:
refreshToken
- refresh tokenadditionalGrantParameters
- 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 interfaceOidcClient
- Parameters:
accessToken
- access token which needs to be revokedadditionalParameters
- 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
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-