Interface Authenticator
- All Known Implementing Classes:
AzureActiveDirectoryAuthenticator,GCPAuthenticator,OpenIDConnectAuthenticator
public interface Authenticator
The Authenticator interface represents a plugin that can handle a specific type of authentication
information (e.g. 'gcp')
-
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.booleanDetermine if this config is expiredRefresh an expired token with a new fresh one.
-
Method Details
-
getName
String getName()Return the name of this authenticator, this should be the value that is also in a kubeconfig file. -
getToken
Get a token from this authenticator.- Parameters:
config- The configuration information for this authenticator- Returns:
- The new token, null of no such token can be found/generated
-
isExpired
Determine if this config is expired -
refresh
Refresh an expired token with a new fresh one.
-