public class KubeconfigAuthentication extends Object implements Authentication
KubeConfig to configure ApiClient authentication to the Kubernetes API.
Tries to configure the following authentication mechanisms in this order.
ClientCertificateAuthentication (using client certificate files or data)
UsernamePasswordAuthentication
AccessTokenAuthentication
| Constructor and Description |
|---|
KubeconfigAuthentication(KubeConfig config) |
| Modifier and Type | Method and Description |
|---|---|
Authentication |
getDelegateAuthentication() |
void |
provide(io.kubernetes.client.openapi.ApiClient client) |
public KubeconfigAuthentication(KubeConfig config) throws IOException
IOExceptionpublic void provide(io.kubernetes.client.openapi.ApiClient client)
provide in interface Authenticationpublic Authentication getDelegateAuthentication()
Copyright © 2021. All rights reserved.