Class AuthorizationManager
java.lang.Object
com.azure.resourcemanager.authorization.AuthorizationManager
- All Implemented Interfaces:
HasServiceClient<com.azure.resourcemanager.authorization.fluent.MicrosoftGraphClient>
public final class AuthorizationManager
extends Object
implements HasServiceClient<com.azure.resourcemanager.authorization.fluent.MicrosoftGraphClient>
Entry point to Azure Authorization and Graph RBAC management.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceThe interface allowing configurations to be set. -
Method Summary
Modifier and TypeMethodDescriptionstatic 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 AuthorizationManagerauthenticate(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.Get a Configurable instance that can be used to create AuthorizationManager with optional configuration.com.azure.core.management.AzureEnvironmentgroups()com.azure.resourcemanager.authorization.fluent.AuthorizationManagementClientcom.azure.resourcemanager.authorization.fluent.MicrosoftGraphClienttenantId()users()
-
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 useprofile- 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- theHttpPipelineconfigured with Azure authentication credential.profile- the profile used in Active Directory- Returns:
- the AuthorizationManager instance
-
configure
Get a Configurable instance that can be used to create AuthorizationManager with optional configuration.- Returns:
- the instance allowing configurations
-
serviceClient
public com.azure.resourcemanager.authorization.fluent.MicrosoftGraphClient serviceClient()- Specified by:
serviceClientin interfaceHasServiceClient<com.azure.resourcemanager.authorization.fluent.MicrosoftGraphClient>
-
roleServiceClient
public com.azure.resourcemanager.authorization.fluent.AuthorizationManagementClient roleServiceClient()- Returns:
- wrapped inner authorization client providing direct access to auto-generated API implementation, based on Azure REST API
-
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.InternalRuntimeContextassociated with this manager
-
users
- Returns:
- the Active Directory user management API entry point
-
groups
- Returns:
- the Active Directory group management API entry point
-
servicePrincipals
- Returns:
- the service principal management API entry point
-
applications
- Returns:
- the application management API entry point
-
roleAssignments
- Returns:
- the role assignment management API entry point
-
roleDefinitions
- Returns:
- the role definition management API entry point
-