AccessPolicy.UpdateDefinitionStages.WithIdentity<ParentT> Interface

Type Parameters

ParentT

the stage of the parent definition to return to after attaching this definition

public static interface AccessPolicy.UpdateDefinitionStages.WithIdentity

The access policy definition stage allowing the Active Directory identity to be specified.

Method Summary

Modifier and Type Method and Description
abstract WithAttach<ParentT> forApplicationId(String applicationId)

Application ID of the client making request on behalf of a principal.

abstract WithAttach<ParentT> forGroup(ActiveDirectoryGroup activeDirectoryGroup)

Specifies the Active Directory group this access policy is for.

abstract WithAttach<ParentT> forObjectId(String objectId)

Specifies the object ID of the Active Directory identity this access policy is for.

abstract WithAttach<ParentT> forServicePrincipal(ServicePrincipal servicePrincipal)

Specifies the Active Directory service principal this access policy is for.

abstract WithAttach<ParentT> forServicePrincipal(String servicePrincipalName)

Specifies the Active Directory service principal this access policy is for.

abstract WithAttach<ParentT> forTenantId(String tenantId)

Specifies the Azure Active Directory tenant ID that should be used for authenticating requests to the key vault.

abstract WithAttach<ParentT> forUser(ActiveDirectoryUser user)

Specifies the Active Directory user this access policy is for.

abstract WithAttach<ParentT> forUser(String userPrincipalName)

Specifies the Active Directory user this access policy is for.

Method Details

forApplicationId

public abstract AccessPolicy.UpdateDefinitionStages.WithAttach forApplicationId(String applicationId)

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

forGroup

public abstract AccessPolicy.UpdateDefinitionStages.WithAttach 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

forObjectId

public abstract AccessPolicy.UpdateDefinitionStages.WithAttach forObjectId(String objectId)

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

forServicePrincipal

public abstract AccessPolicy.UpdateDefinitionStages.WithAttach 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

public abstract AccessPolicy.UpdateDefinitionStages.WithAttach forServicePrincipal(String servicePrincipalName)

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

forTenantId

public abstract AccessPolicy.UpdateDefinitionStages.WithAttach forTenantId(String tenantId)

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

forUser

public abstract AccessPolicy.UpdateDefinitionStages.WithAttach forUser(ActiveDirectoryUser user)

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

public abstract AccessPolicy.UpdateDefinitionStages.WithAttach forUser(String userPrincipalName)

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

Applies to