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.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceAuthorizationManager.ConfigurableThe interface allowing configurations to be set.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ActiveDirectoryApplicationsapplications()static AuthorizationManagerauthenticate(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.static AuthorizationManager.Configurableconfigure()Get a Configurable instance that can be used to create AuthorizationManager with optional configuration.com.azure.core.management.AzureEnvironmentenvironment()ActiveDirectoryGroupsgroups()ResourceManagerUtils.InternalRuntimeContextinternalContext()RoleAssignmentsroleAssignments()RoleDefinitionsroleDefinitions()AuthorizationManagementClientroleServiceClient()MicrosoftGraphClientserviceClient()ServicePrincipalsservicePrincipals()StringtenantId()ActiveDirectoryUsersusers()
-
-
-
Method Detail
-
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 useprofile- the profile to use- 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:
serviceClientin interfaceHasServiceClient<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
public ResourceManagerUtils.InternalRuntimeContext internalContext()
- Returns:
- the
ResourceManagerUtils.InternalRuntimeContextassociated 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
-
-