Package com.azure.identity
Class IntelliJCredential
java.lang.Object
com.azure.identity.IntelliJCredential
- All Implemented Interfaces:
TokenCredential
A credential provider that provides token credentials from Azure Tools for IntelliJ plugin credential cache.
If the developer has authenticated successfully with Azure Tools for IntelliJ plugin in the IntelliJ IDE then this credential can be used in the development code to reuse the cached plugin credentials.
-
Method Summary
Modifier and TypeMethodDescriptiongetToken
(TokenRequestContext request) Asynchronously get a token for a given resource/audience.
-
Method Details
-
getToken
Description copied from interface:TokenCredential
Asynchronously get a token for a given resource/audience. This method is called automatically by Azure SDK client libraries. You may call this method directly, but you must also handle token caching and token refreshing.- Specified by:
getToken
in interfaceTokenCredential
- Parameters:
request
- the details of the token request- Returns:
- a Publisher that emits a single access token
-