Package io.quarkus.oidc.client.runtime
Class OidcClientRecorder.DisabledOidcClient
java.lang.Object
io.quarkus.oidc.client.runtime.OidcClientRecorder.DisabledOidcClient
- All Implemented Interfaces:
OidcClient,Closeable,AutoCloseable
- Enclosing class:
OidcClientRecorder
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()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, waitMethods inherited from interface io.quarkus.oidc.client.OidcClient
getTokens, refreshTokens, revokeAccessToken
-
Field Details
-
message
String message
-
-
Constructor Details
-
DisabledOidcClient
DisabledOidcClient(String message)
-
-
Method Details
-
getTokens
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, Map<String, String> additionalGrantParameters) 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 tokenadditionalGrantParameters- additional grant parameters- Returns:
- Uni
-
revokeAccessToken
public io.smallrye.mutiny.Uni<Boolean> revokeAccessToken(String accessToken, Map<String, String> additionalParameters) Description copied from interface:OidcClientRevoke the access token.- Specified by:
revokeAccessTokenin 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:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-