Class EncryptionIdentity

java.lang.Object
com.azure.resourcemanager.netapp.models.EncryptionIdentity
All Implemented Interfaces:
com.azure.json.JsonSerializable<EncryptionIdentity>

public final class EncryptionIdentity extends Object implements com.azure.json.JsonSerializable<EncryptionIdentity>
Identity used to authenticate with key vault.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates an instance of EncryptionIdentity class.
  • Method Summary

    Modifier and Type
    Method
    Description
    Get the federatedClientId property: ClientId of the multi-tenant AAD Application.
    fromJson(com.azure.json.JsonReader jsonReader)
    Reads an instance of EncryptionIdentity from the JsonReader.
    Get the principalId property: The principal ID (object ID) of the identity used to authenticate with key vault.
    com.azure.json.JsonWriter
    toJson(com.azure.json.JsonWriter jsonWriter)
    Get the userAssignedIdentity property: The ARM resource identifier of the user assigned identity used to authenticate with key vault.
    void
    Validates the instance.
    withFederatedClientId(String federatedClientId)
    Set the federatedClientId property: ClientId of the multi-tenant AAD Application.
    withUserAssignedIdentity(String userAssignedIdentity)
    Set the userAssignedIdentity property: The ARM resource identifier of the user assigned identity used to authenticate with key vault.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.azure.json.JsonSerializable

    toJson, toJson, toJsonBytes, toJsonString
  • Constructor Details

    • EncryptionIdentity

      public EncryptionIdentity()
      Creates an instance of EncryptionIdentity class.
  • Method Details

    • principalId

      public String principalId()
      Get the principalId property: The principal ID (object ID) of the identity used to authenticate with key vault. Read-only.
      Returns:
      the principalId value.
    • userAssignedIdentity

      public String userAssignedIdentity()
      Get the userAssignedIdentity property: The ARM resource identifier of the user assigned identity used to authenticate with key vault. Applicable if identity.type has 'UserAssigned'. It should match key of identity.userAssignedIdentities.
      Returns:
      the userAssignedIdentity value.
    • withUserAssignedIdentity

      public EncryptionIdentity withUserAssignedIdentity(String userAssignedIdentity)
      Set the userAssignedIdentity property: The ARM resource identifier of the user assigned identity used to authenticate with key vault. Applicable if identity.type has 'UserAssigned'. It should match key of identity.userAssignedIdentities.
      Parameters:
      userAssignedIdentity - the userAssignedIdentity value to set.
      Returns:
      the EncryptionIdentity object itself.
    • federatedClientId

      public String federatedClientId()
      Get the federatedClientId property: ClientId of the multi-tenant AAD Application. Used to access cross-tenant keyvaults.
      Returns:
      the federatedClientId value.
    • withFederatedClientId

      public EncryptionIdentity withFederatedClientId(String federatedClientId)
      Set the federatedClientId property: ClientId of the multi-tenant AAD Application. Used to access cross-tenant keyvaults.
      Parameters:
      federatedClientId - the federatedClientId value to set.
      Returns:
      the EncryptionIdentity object itself.
    • validate

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

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<EncryptionIdentity>
      Throws:
      IOException
    • fromJson

      public static EncryptionIdentity fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of EncryptionIdentity from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of EncryptionIdentity if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
      Throws:
      IOException - If an error occurs while reading the EncryptionIdentity.