Interface AccessPolicy.DefinitionStages.WithIdentity<ParentT>
- Type Parameters:
ParentT
- the stage of the parent definition to return to after attaching this definition
- All Known Subinterfaces:
AccessPolicy.Definition<ParentT>
,AccessPolicy.DefinitionStages.Blank<ParentT>
- Enclosing interface:
- AccessPolicy.DefinitionStages
public static interface AccessPolicy.DefinitionStages.WithIdentity<ParentT>
The access policy definition stage allowing the Active Directory identity to be specified.
-
Method Summary
Modifier and TypeMethodDescriptionforApplicationId
(String applicationId) Application ID of the client making request on behalf of a principal.forGroup
(ActiveDirectoryGroup activeDirectoryGroup) Specifies the Active Directory group this access policy is for.forObjectId
(String objectId) Specifies the object ID of the Active Directory identity this access policy is for.forServicePrincipal
(ServicePrincipal servicePrincipal) Specifies the Active Directory service principal this access policy is for.forServicePrincipal
(String servicePrincipalName) Specifies the Active Directory service principal this access policy is for.forTenantId
(String tenantId) Specifies the Azure Active Directory tenant ID that should be used for authenticating requests to the key vault.forUser
(ActiveDirectoryUser user) Specifies the Active Directory user this access policy is for.Specifies the Active Directory user this access policy is for.
-
Method Details
-
forObjectId
Specifies the object ID of the Active Directory identity this access policy is for.- Parameters:
objectId
- the object ID of the AD identity- Returns:
- the next stage of access policy definition
-
forUser
Specifies the Active Directory user this access policy is for.- Parameters:
user
- the AD user object- Returns:
- the next stage of access policy definition
-
forUser
Specifies the Active Directory user this access policy is for.- Parameters:
userPrincipalName
- the user principal name of the AD user- Returns:
- the next stage of access policy definition
-
forApplicationId
Application ID of the client making request on behalf of a principal.- Parameters:
applicationId
- the application ID- Returns:
- the next stage of access policy definition
-
forTenantId
Specifies the Azure Active Directory tenant ID that should be used for authenticating requests to the key vault.- Parameters:
tenantId
- the tenant ID for the key vault.- Returns:
- the next stage of access policy definition
-
forGroup
AccessPolicy.DefinitionStages.WithAttach<ParentT> forGroup(ActiveDirectoryGroup activeDirectoryGroup) Specifies the Active Directory group this access policy is for.- Parameters:
activeDirectoryGroup
- the AD group object- Returns:
- the next stage of access policy definition
-
forServicePrincipal
AccessPolicy.DefinitionStages.WithAttach<ParentT> forServicePrincipal(ServicePrincipal servicePrincipal) Specifies the Active Directory service principal this access policy is for.- Parameters:
servicePrincipal
- the AD service principal object- Returns:
- the next stage of access policy definition
-
forServicePrincipal
Specifies the Active Directory service principal this access policy is for.- Parameters:
servicePrincipalName
- the service principal name of the AD user- Returns:
- the next stage of access policy definition
-