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.booleanDetermine 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:AuthenticatorReturn the name of this authenticator, this should be the value that is also in a kubeconfig file.- Specified by:
getNamein interfaceAuthenticator
-
getToken
Description copied from interface:AuthenticatorGet a token from this authenticator.- Specified by:
getTokenin 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:AuthenticatorDetermine if this config is expired- Specified by:
isExpiredin interfaceAuthenticator
-
refresh
Description copied from interface:AuthenticatorRefresh an expired token with a new fresh one.- Specified by:
refreshin interfaceAuthenticator
-