Class OpenIDConnectAuthenticator
java.lang.Object
io.kubernetes.client.util.authenticators.OpenIDConnectAuthenticator
- All Implemented Interfaces:
Authenticator
OpenIDConnectAuthenticator
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetName()
Return the name of this authenticator, this should be the value that is also in a kubeconfig file.Get a token from this authenticator.boolean
Determine if this config is expiredRefresh an expired token with a new fresh one.
-
Field Details
-
OIDC_ID_TOKEN
The id_token- See Also:
-
OIDC_ISSUER
The issuer- See Also:
-
OIDC_REFRESH_TOKEN
The refresh_token- See Also:
-
OIDC_CLIENT_ID
The client_id- See Also:
-
OIDC_CLIENT_SECRET
Optional client secret- See Also:
-
OIDC_IDP_CERT_DATA
Optional IdP TLS Certificate- See Also:
-
-
Constructor Details
-
OpenIDConnectAuthenticator
public OpenIDConnectAuthenticator()
-
-
Method Details
-
getName
Description copied from interface:Authenticator
Return the name of this authenticator, this should be the value that is also in a kubeconfig file.- Specified by:
getName
in interfaceAuthenticator
-
getToken
Description copied from interface:Authenticator
Get a token from this authenticator.- Specified by:
getToken
in interfaceAuthenticator
- Parameters:
config
- The configuration information for this authenticator- Returns:
- The new token, null of no such token can be found/generated
-
isExpired
Description copied from interface:Authenticator
Determine if this config is expired- Specified by:
isExpired
in interfaceAuthenticator
-
refresh
Description copied from interface:Authenticator
Refresh an expired token with a new fresh one.- Specified by:
refresh
in interfaceAuthenticator
-