I
InsightNexus

MSIConfigurationForAppService (Azure SDK for Java Reference Documentation)

Author

Michael Gray

Published Feb 15, 2026

MSIConfigurationForAppService (Azure SDK for Java Reference Documentation)
  • java.lang.Object
    • com.microsoft.azure.msiAuthTokenProvider.MSIConfigurationForAppService


  • public class MSIConfigurationForAppServiceextends Object

    Defines the configuration to be used for retrieving access token from within an app-service with system assigned MSI enabled.

    • Constructor Summary

    • Method Summary

    • Constructor Detail

      • MSIConfigurationForAppService

        public MSIConfigurationForAppService(String managementEndpoint)

        Creates MSIConfigurationForAppService.

        Parameters:
        managementEndpoint - azure management endpoint
    • Method Detail

      • withResource

        public MSIConfigurationForAppService withResource(String resource)

        Specifies the token audience.

        Parameters:
        resource - the audience of the token.
        Returns:
        MSIConfigurationForAppService
      • withMsiEndpoint

        public MSIConfigurationForAppService withMsiEndpoint(String msiEndpoint)

        Specifies the endpoint from which token needs to retrieved.

        Parameters:
        msiEndpoint - the token endpoint.
        Returns:
        MSIConfigurationForAppService
      • withClientId

        public MSIConfigurationForAppService withClientId(String clientId)

        Specify the client Id (to be used or user assigned identities)

        Parameters:
        clientId - the client ID fot eh user assigned identity
        Returns:
        MSIConfigurationForAppService
      • withObjectId

        public MSIConfigurationForAppService withObjectId(String objectId)

        Specify the object Id (to be used or user assigned identities)

        Parameters:
        objectId - the object ID fot eh user assigned identity
        Returns:
        MSIConfigurationForAppService
      • withMsiSecret

        public MSIConfigurationForAppService withMsiSecret(String msiSecret)

        Specifies secret to use to retrieve the token.

        Parameters:
        msiSecret - the secret.
        Returns:
        MSIConfigurationForAppService

/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*/