KeyEncryptionKeyIdentity Class
- java.
lang. Object - com.
azure. resourcemanager. storage. models. KeyEncryptionKeyIdentity
- com.
Implements
public final class KeyEncryptionKeyIdentity
implements JsonSerializable<KeyEncryptionKeyIdentity>
All identity configuration for Customer-managed key settings defining which identity should be used to auth to Key Vault.
Constructor Summary
| Constructor | Description |
|---|---|
| KeyEncryptionKeyIdentity() |
Creates an instance of Key |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| UUID |
delegatedIdentityClientId()
Get the delegated |
| UUID |
federatedClientId()
Get the federated |
|
static
Key |
fromJson(JsonReader jsonReader)
Reads an instance of Key |
|
Key |
identityType()
Get the identity |
|
Json |
toJson(JsonWriter jsonWriter) |
| String |
userAssignedIdentityResourceId()
Get the user |
| void |
validate()
Validates the instance. |
|
Key |
withDelegatedIdentityClientId(UUID delegatedIdentityClientId)
Set the delegated |
|
Key |
withFederatedClientId(UUID federatedClientId)
Set the federated |
|
Key |
withIdentityType(KeyEncryptionKeyIdentityType identityType)
Set the identity |
|
Key |
withUserAssignedIdentityResourceId(String userAssignedIdentityResourceId)
Set the user |
Methods inherited from java.lang.Object
Constructor Details
KeyEncryptionKeyIdentity
public KeyEncryptionKeyIdentity()
Creates an instance of KeyEncryptionKeyIdentity class.
Method Details
delegatedIdentityClientId
public UUID delegatedIdentityClientId()
Get the delegatedIdentityClientId property: delegated identity to use for accessing key encryption key Url. Ex: /subscriptions/fa5fc227-a624-475e-b696-cdd604c735bc/resourceGroups/<resource group>/providers/Microsoft.ManagedIdentity/userAssignedIdentities/myId. Mutually exclusive with identityType systemAssignedIdentity and userAssignedIdentity - internal use only.
Returns:
federatedClientId
public UUID federatedClientId()
Get the federatedClientId property: application client identity to use for accessing key encryption key Url in a different tenant. Ex: f83c6b1b-4d34-47e4-bb34-9d83df58b540.
Returns:
fromJson
public static KeyEncryptionKeyIdentity fromJson(JsonReader jsonReader)
Reads an instance of KeyEncryptionKeyIdentity from the JsonReader.
Parameters:
Returns:
Throws:
identityType
public KeyEncryptionKeyIdentityType identityType()
Get the identityType property: The type of identity to use. Values can be systemAssignedIdentity, userAssignedIdentity, or delegatedResourceIdentity.
Returns:
toJson
userAssignedIdentityResourceId
public String userAssignedIdentityResourceId()
Get the userAssignedIdentityResourceId property: User assigned identity to use for accessing key encryption key Url. Ex: /subscriptions/fa5fc227-a624-475e-b696-cdd604c735bc/resourceGroups/<resource group>/providers/Microsoft.ManagedIdentity/userAssignedIdentities/myId. Mutually exclusive with identityType systemAssignedIdentity.
Returns:
validate
public void validate()
Validates the instance.
withDelegatedIdentityClientId
public KeyEncryptionKeyIdentity withDelegatedIdentityClientId(UUID delegatedIdentityClientId)
Set the delegatedIdentityClientId property: delegated identity to use for accessing key encryption key Url. Ex: /subscriptions/fa5fc227-a624-475e-b696-cdd604c735bc/resourceGroups/<resource group>/providers/Microsoft.ManagedIdentity/userAssignedIdentities/myId. Mutually exclusive with identityType systemAssignedIdentity and userAssignedIdentity - internal use only.
Parameters:
Returns:
withFederatedClientId
public KeyEncryptionKeyIdentity withFederatedClientId(UUID federatedClientId)
Set the federatedClientId property: application client identity to use for accessing key encryption key Url in a different tenant. Ex: f83c6b1b-4d34-47e4-bb34-9d83df58b540.
Parameters:
Returns:
withIdentityType
public KeyEncryptionKeyIdentity withIdentityType(KeyEncryptionKeyIdentityType identityType)
Set the identityType property: The type of identity to use. Values can be systemAssignedIdentity, userAssignedIdentity, or delegatedResourceIdentity.
Parameters:
Returns:
withUserAssignedIdentityResourceId
public KeyEncryptionKeyIdentity withUserAssignedIdentityResourceId(String userAssignedIdentityResourceId)
Set the userAssignedIdentityResourceId property: User assigned identity to use for accessing key encryption key Url. Ex: /subscriptions/fa5fc227-a624-475e-b696-cdd604c735bc/resourceGroups/<resource group>/providers/Microsoft.ManagedIdentity/userAssignedIdentities/myId. Mutually exclusive with identityType systemAssignedIdentity.
Parameters:
Returns: