@Beta public class AppServiceMSICredentials extends AzureTokenCredentials
Constructor and Description |
---|
AppServiceMSICredentials(AzureEnvironment environment)
Creates an MSI credential for app services.
|
AppServiceMSICredentials(AzureEnvironment environment,
String endpoint,
String secret)
Creates an MSI credential for app services.
|
Modifier and Type | Method and Description |
---|---|
String |
getToken(String resource)
Override this method to provide the mechanism to get a token.
|
applyCredentialsFilter, defaultSubscriptionId, domain, environment, getToken, proxy, withDefaultSubscriptionId, withProxy
getScheme
public AppServiceMSICredentials(AzureEnvironment environment)
environment
- the environment this application is running inpublic AppServiceMSICredentials(AzureEnvironment environment, String endpoint, String secret)
environment
- the environment this application is running inendpoint
- the MSI endpointsecret
- the MSI secretpublic String getToken(String resource) throws IOException
AzureTokenCredentials
getToken
in class AzureTokenCredentials
resource
- the resource the access token is forIOException
- exceptions from IOCopyright © 2019. All rights reserved.