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 -
Method Summary
Modifier and TypeMethodDescriptionGet the federatedClientId property: ClientId of the multi-tenant AAD Application.static EncryptionIdentity
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
validate()
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
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
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
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
Get the federatedClientId property: ClientId of the multi-tenant AAD Application. Used to access cross-tenant keyvaults.- Returns:
- the federatedClientId value.
-
withFederatedClientId
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
- Specified by:
toJson
in interfacecom.azure.json.JsonSerializable<EncryptionIdentity>
- Throws:
IOException
-
fromJson
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.
-