Class SearchResourceEncryptionKey
java.lang.Object
com.azure.search.documents.indexes.models.SearchResourceEncryptionKey
- All Implemented Interfaces:
com.azure.json.JsonSerializable<SearchResourceEncryptionKey>
public final class SearchResourceEncryptionKey
extends Object
implements com.azure.json.JsonSerializable<SearchResourceEncryptionKey>
A customer-managed encryption key in Azure Key Vault. Keys that you create and manage can be used to encrypt or
decrypt data-at-rest, such as indexes and synonym maps.
-
Constructor Summary
ConstructorsConstructorDescriptionSearchResourceEncryptionKey(String keyName, String vaultUrl) Creates an instance of SearchResourceEncryptionKey class. -
Method Summary
Modifier and TypeMethodDescriptionstatic SearchResourceEncryptionKeyfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of SearchResourceEncryptionKey from the JsonReader.Get the applicationId property: An AAD Application ID that was granted the required access permissions to the Azure Key Vault that is to be used when encrypting your data at rest.Get the applicationSecret property: The authentication key of the specified AAD application.Get the identity property: An explicit managed identity to use for this encryption key.Get the keyName property: The name of your Azure Key Vault key to be used to encrypt your data at rest.Get the keyVersion property: The version of your Azure Key Vault key to be used to encrypt your data at rest.Get the vaultUrl property: The URI of your Azure Key Vault, also referred to as DNS name, that contains the key to be used to encrypt your data at rest.setApplicationId(String applicationId) Set the applicationId property: An AAD Application ID that was granted the required access permissions to the Azure Key Vault that is to be used when encrypting your data at rest.setApplicationSecret(String applicationSecret) Set the applicationSecret property: The authentication key of the specified AAD application.setIdentity(SearchIndexerDataIdentity identity) Set the identity property: An explicit managed identity to use for this encryption key.setKeyVersion(String keyVersion) Set the keyVersion property: The version of your Azure Key Vault key to be used to encrypt your data at rest.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
SearchResourceEncryptionKey
Creates an instance of SearchResourceEncryptionKey class.- Parameters:
keyName- the keyName value to set.vaultUrl- the vaultUrl value to set.
-
-
Method Details
-
getKeyName
Get the keyName property: The name of your Azure Key Vault key to be used to encrypt your data at rest.- Returns:
- the keyName value.
-
getKeyVersion
Get the keyVersion property: The version of your Azure Key Vault key to be used to encrypt your data at rest.- Returns:
- the keyVersion value.
-
setKeyVersion
Set the keyVersion property: The version of your Azure Key Vault key to be used to encrypt your data at rest.- Parameters:
keyVersion- the keyVersion value to set.- Returns:
- the SearchResourceEncryptionKey object itself.
-
getVaultUrl
Get the vaultUrl property: The URI of your Azure Key Vault, also referred to as DNS name, that contains the key to be used to encrypt your data at rest. An example URI might be `https://my-keyvault-name.vault.azure.net`.- Returns:
- the vaultUrl value.
-
getIdentity
Get the identity property: An explicit managed identity to use for this encryption key. If not specified and the access credentials property is null, the system-assigned managed identity is used. On update to the resource, if the explicit identity is unspecified, it remains unchanged. If "none" is specified, the value of this property is cleared.- Returns:
- the identity value.
-
setIdentity
Set the identity property: An explicit managed identity to use for this encryption key. If not specified and the access credentials property is null, the system-assigned managed identity is used. On update to the resource, if the explicit identity is unspecified, it remains unchanged. If "none" is specified, the value of this property is cleared.- Parameters:
identity- the identity value to set.- Returns:
- the SearchResourceEncryptionKey object itself.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<SearchResourceEncryptionKey>- Throws:
IOException
-
fromJson
public static SearchResourceEncryptionKey fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of SearchResourceEncryptionKey from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of SearchResourceEncryptionKey if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IllegalStateException- If the deserialized JSON object was missing any required properties.IOException- If an error occurs while reading the SearchResourceEncryptionKey.
-
getApplicationId
Get the applicationId property: An AAD Application ID that was granted the required access permissions to the Azure Key Vault that is to be used when encrypting your data at rest. The Application ID should not be confused with the Object ID for your AAD Application.- Returns:
- the applicationId value.
-
setApplicationId
Set the applicationId property: An AAD Application ID that was granted the required access permissions to the Azure Key Vault that is to be used when encrypting your data at rest. The Application ID should not be confused with the Object ID for your AAD Application.- Parameters:
applicationId- the applicationId value to set.- Returns:
- the SearchResourceEncryptionKey object itself.
-
getApplicationSecret
Get the applicationSecret property: The authentication key of the specified AAD application.- Returns:
- the applicationSecret value.
-
setApplicationSecret
Set the applicationSecret property: The authentication key of the specified AAD application.- Parameters:
applicationSecret- the applicationSecret value to set.- Returns:
- the SearchResourceEncryptionKey object itself.
-