Class AccessPolicyEntry

java.lang.Object
com.azure.resourcemanager.keyvault.models.AccessPolicyEntry

public final class AccessPolicyEntry extends Object
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

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Get the applicationId property: Application ID of the client making request on behalf of a principal.
    Get the objectId property: The object ID of a user, service principal or security group in the Azure Active Directory tenant for the vault.
    Get the permissions property: Permissions the identity has for keys, secrets and certificates.
    Get the tenantId property: The Azure Active Directory tenant ID that should be used for authenticating requests to the key vault.
    void
    Validates the instance.
    withApplicationId(UUID applicationId)
    Set the applicationId property: Application ID of the client making request on behalf of a principal.
    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.
    Set the permissions property: Permissions the identity has for keys, secrets and certificates.
    withTenantId(UUID tenantId)
    Set the tenantId property: The Azure Active Directory tenant ID that should be used for authenticating requests to the key vault.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • AccessPolicyEntry

      public AccessPolicyEntry()
  • Method Details

    • 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:
      the tenantId value.
    • 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:
      tenantId - the tenantId value to set.
      Returns:
      the AccessPolicyEntry object itself.
    • 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:
      the objectId value.
    • 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:
      objectId - the objectId value to set.
      Returns:
      the AccessPolicyEntry object itself.
    • applicationId

      public UUID applicationId()
      Get the applicationId property: Application ID of the client making request on behalf of a principal.
      Returns:
      the applicationId value.
    • withApplicationId

      public AccessPolicyEntry withApplicationId(UUID applicationId)
      Set the applicationId property: Application ID of the client making request on behalf of a principal.
      Parameters:
      applicationId - the applicationId value to set.
      Returns:
      the AccessPolicyEntry object itself.
    • permissions

      public Permissions permissions()
      Get the permissions property: Permissions the identity has for keys, secrets and certificates.
      Returns:
      the permissions value.
    • withPermissions

      public AccessPolicyEntry withPermissions(Permissions permissions)
      Set the permissions property: Permissions the identity has for keys, secrets and certificates.
      Parameters:
      permissions - the permissions value to set.
      Returns:
      the AccessPolicyEntry object itself.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.