Package io.quarkus.oidc.common.runtime
Class KubernetesServiceClientAssertionProvider
java.lang.Object
io.quarkus.oidc.common.runtime.KubernetesServiceClientAssertionProvider
- All Implemented Interfaces:
ClientAssertionProvider,Closeable,AutoCloseable
final class KubernetesServiceClientAssertionProvider
extends Object
implements ClientAssertionProvider, Closeable
-
Constructor Summary
ConstructorsConstructorDescriptionKubernetesServiceClientAssertionProvider(io.vertx.core.Vertx vertx, Path bearerTokenPath) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Closes this provider.Gets current client assertion.
-
Constructor Details
-
KubernetesServiceClientAssertionProvider
KubernetesServiceClientAssertionProvider(io.vertx.core.Vertx vertx, Path bearerTokenPath)
-
-
Method Details
-
getClientAssertion
Description copied from interface:ClientAssertionProviderGets current client assertion. This method should not block. If the client assertion is retrieved with blocking IO operation, we recommend to keep the assertion up to date using a periodic scheduled task.- Specified by:
getClientAssertionin interfaceClientAssertionProvider- Returns:
- client assertion
-
close
public void close()Description copied from interface:ClientAssertionProviderCloses this provider. Use this method to cancel the periodic scheduled task.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceClientAssertionProvider- Specified by:
closein interfaceCloseable
-