Class GCPAuthenticator
java.lang.Object
io.kubernetes.client.util.authenticators.GCPAuthenticator
- All Implemented Interfaces:
Authenticator
The Authenticator interface represents a plugin that can handle a specific type of authentication
information (e.g. 'gcp')
-
Constructor Summary
ConstructorsConstructorDescriptionGCPAuthenticator
(ProcessBuilder pb, com.google.auth.oauth2.GoogleCredentials gc) -
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 expiredString[]
parseScopes
(Map<String, Object> config) Refresh an expired token with a new fresh one.
-
Constructor Details
-
GCPAuthenticator
public GCPAuthenticator() -
GCPAuthenticator
-
-
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
-
parseScopes
-