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 Details

    • getName

      String getName()
      Return the name of this authenticator, this should be the value that is also in a kubeconfig file.
    • getToken

      String getToken(Map<String,Object> config)
      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

      boolean isExpired(Map<String,Object> config)
      Determine if this config is expired
    • refresh

      Map<String,Object> refresh(Map<String,Object> config)
      Refresh an expired token with a new fresh one.