AccessPolicyEntry Class
- java.
lang. Object - com.
azure. resourcemanager. keyvault. models. AccessPolicyEntry
- com.
Implements
public final class AccessPolicyEntry
implements JsonSerializable<AccessPolicyEntry>
An identity that have access to the key vault. All identities in the array must use the same tenant ID as the key vault's tenant ID.
Constructor Summary
Constructor | Description |
---|---|
AccessPolicyEntry() |
Creates an instance of Access |
Method Summary
Modifier and Type | Method and Description |
---|---|
UUID |
applicationId()
Get the application |
static
Access |
fromJson(JsonReader jsonReader)
Reads an instance of Access |
String |
objectId()
Get the object |
Permissions |
permissions()
Get the permissions property: Permissions the identity has for keys, secrets and certificates. |
UUID |
tenantId()
Get the tenant |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Access |
withApplicationId(UUID applicationId)
Set the application |
Access |
withObjectId(String objectId)
Set the object |
Access |
withPermissions(Permissions permissions)
Set the permissions property: Permissions the identity has for keys, secrets and certificates. |
Access |
withTenantId(UUID tenantId)
Set the tenant |
Methods inherited from java.lang.Object
Constructor Details
AccessPolicyEntry
public AccessPolicyEntry()
Creates an instance of AccessPolicyEntry class.
Method Details
applicationId
public UUID applicationId()
Get the applicationId property: Application ID of the client making request on behalf of a principal.
Returns:
fromJson
public static AccessPolicyEntry fromJson(JsonReader jsonReader)
Reads an instance of AccessPolicyEntry from the JsonReader.
Parameters:
Returns:
Throws:
objectId
public String objectId()
Get the objectId property: The object ID of a user, service principal or security group in the Azure Active Directory tenant for the vault. The object ID must be unique for the list of access policies.
Returns:
permissions
public Permissions permissions()
Get the permissions property: Permissions the identity has for keys, secrets and certificates.
Returns:
tenantId
public UUID tenantId()
Get the tenantId property: The Azure Active Directory tenant ID that should be used for authenticating requests to the key vault.
Returns:
toJson
validate
public void validate()
Validates the instance.
withApplicationId
public AccessPolicyEntry withApplicationId(UUID applicationId)
Set the applicationId property: Application ID of the client making request on behalf of a principal.
Parameters:
Returns:
withObjectId
public AccessPolicyEntry withObjectId(String objectId)
Set the objectId property: The object ID of a user, service principal or security group in the Azure Active Directory tenant for the vault. The object ID must be unique for the list of access policies.
Parameters:
Returns:
withPermissions
public AccessPolicyEntry withPermissions(Permissions permissions)
Set the permissions property: Permissions the identity has for keys, secrets and certificates.
Parameters:
Returns:
withTenantId
public AccessPolicyEntry withTenantId(UUID tenantId)
Set the tenantId property: The Azure Active Directory tenant ID that should be used for authenticating requests to the key vault.
Parameters:
Returns:
Applies to
Azure SDK for Java