public class GCPAuthenticator extends Object implements Authenticator
| Constructor and Description |
|---|
GCPAuthenticator() |
GCPAuthenticator(ProcessBuilder pb,
com.google.auth.oauth2.GoogleCredentials gc) |
| Modifier and Type | Method and Description |
|---|---|
String |
getName()
Return the name of this authenticator, this should be the value that is also in a kubeconfig
file.
|
String |
getToken(Map<String,Object> config)
Get a token from this authenticator.
|
boolean |
isExpired(Map<String,Object> config)
Determine if this config is expired
|
String[] |
parseScopes(Map<String,Object> config) |
Map<String,Object> |
refresh(Map<String,Object> config)
Refresh an expired token with a new fresh one.
|
public GCPAuthenticator()
public GCPAuthenticator(ProcessBuilder pb, com.google.auth.oauth2.GoogleCredentials gc)
public String getName()
AuthenticatorgetName in interface Authenticatorpublic String getToken(Map<String,Object> config)
AuthenticatorgetToken in interface Authenticatorconfig - The configuration information for this authenticatorpublic boolean isExpired(Map<String,Object> config)
AuthenticatorisExpired in interface Authenticatorpublic Map<String,Object> refresh(Map<String,Object> config)
Authenticatorrefresh in interface AuthenticatorCopyright © 2022. All rights reserved.