Class AzureActiveDirectoryAuthenticator
java.lang.Object
io.kubernetes.client.util.authenticators.AzureActiveDirectoryAuthenticator
- All Implemented Interfaces:
Authenticator
The Authenticator interface represents a plugin that can handle a specific type of authentication
information (e.g. 'azure')
-
Constructor Summary
Constructors -
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 expiredRefresh an expired token with a new fresh one.
-
Constructor Details
-
AzureActiveDirectoryAuthenticator
public AzureActiveDirectoryAuthenticator()
-
-
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
-