Class AuthorizationManager

java.lang.Object
com.azure.resourcemanager.authorization.AuthorizationManager
All Implemented Interfaces:
HasServiceClient<MicrosoftGraphClient>

public final class AuthorizationManager extends Object implements HasServiceClient<MicrosoftGraphClient>
Entry point to Azure Authorization and Graph RBAC management.
  • Method Details

    • authenticate

      public static AuthorizationManager authenticate(com.azure.core.credential.TokenCredential credential, com.azure.core.management.profile.AzureProfile profile)
      Creates an instance of AuthorizationManager that exposes Authorization and Graph RBAC management API entry points.
      Parameters:
      credential - the credential to use
      profile - the profile to use
      Returns:
      the AuthorizationManager instance
    • authenticate

      public static AuthorizationManager authenticate(com.azure.core.http.HttpPipeline httpPipeline, com.azure.core.management.profile.AzureProfile profile)
      Creates an instance of AuthorizationManager that exposes Authorization and Graph RBAC management API entry points.
      Parameters:
      httpPipeline - the HttpPipeline configured with Azure authentication credential.
      profile - the profile used in Active Directory
      Returns:
      the AuthorizationManager instance
    • configure

      public static AuthorizationManager.Configurable configure()
      Get a Configurable instance that can be used to create AuthorizationManager with optional configuration.
      Returns:
      the instance allowing configurations
    • serviceClient

      public MicrosoftGraphClient serviceClient()
      Specified by:
      serviceClient in interface HasServiceClient<MicrosoftGraphClient>
    • roleServiceClient

      public AuthorizationManagementClient roleServiceClient()
      Returns:
      wrapped inner authorization client providing direct access to auto-generated API implementation, based on Azure REST API
    • tenantId

      public String tenantId()
      Returns:
      the tenant ID the graph client is associated with
    • environment

      public com.azure.core.management.AzureEnvironment environment()
      Returns:
      the environment the graph client is associated with
    • internalContext

      Returns:
      the ResourceManagerUtils.InternalRuntimeContext associated with this manager
    • users

      public ActiveDirectoryUsers users()
      Returns:
      the Active Directory user management API entry point
    • groups

      public ActiveDirectoryGroups groups()
      Returns:
      the Active Directory group management API entry point
    • servicePrincipals

      public ServicePrincipals servicePrincipals()
      Returns:
      the service principal management API entry point
    • applications

      public ActiveDirectoryApplications applications()
      Returns:
      the application management API entry point
    • roleAssignments

      public RoleAssignments roleAssignments()
      Returns:
      the role assignment management API entry point
    • roleDefinitions

      public RoleDefinitions roleDefinitions()
      Returns:
      the role definition management API entry point