public class GCPAuthenticator extends Object implements Authenticator
Constructor and Description |
---|
GCPAuthenticator() |
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
|
Map<String,Object> |
refresh(Map<String,Object> config)
Refresh an expired token with a new fresh one.
|
public String getName()
Authenticator
getName
in interface Authenticator
public String getToken(Map<String,Object> config)
Authenticator
getToken
in interface Authenticator
config
- The configuration information for this authenticatorpublic boolean isExpired(Map<String,Object> config)
Authenticator
isExpired
in interface Authenticator
public Map<String,Object> refresh(Map<String,Object> config)
Authenticator
refresh
in interface Authenticator
Copyright © 2021. All rights reserved.