SearchResourceEncryptionKey Class
- java.
lang. Object - com.
azure. search. documents. indexes. models. SearchResourceEncryptionKey
- com.
Implements
public final class SearchResourceEncryptionKey
implements 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
| Constructor | Description |
|---|---|
| SearchResourceEncryptionKey(String keyName, String vaultUrl) |
Creates an instance of Search |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Search |
fromJson(JsonReader jsonReader)
Reads an instance of Search |
|
Azure |
getAccessCredentials()
Get the access |
|
Search |
getIdentity()
Get the identity property: An explicit managed identity to use for this encryption key. |
| String |
getKeyName()
Get the key |
| String |
getKeyVersion()
Get the key |
| String |
getVaultUrl()
Get the vault |
|
Search |
setAccessCredentials(AzureActiveDirectoryApplicationCredentials accessCredentials)
Set the access |
|
Search |
setIdentity(SearchIndexerDataIdentity identity)
Set the identity property: An explicit managed identity to use for this encryption key. |
|
Search |
setKeyVersion(String keyVersion)
Set the key |
|
Json |
toJson(JsonWriter jsonWriter) |
Methods inherited from java.lang.Object
Constructor Details
SearchResourceEncryptionKey
public SearchResourceEncryptionKey(String keyName, String vaultUrl)
Creates an instance of SearchResourceEncryptionKey class.
Parameters:
Method Details
fromJson
public static SearchResourceEncryptionKey fromJson(JsonReader jsonReader)
Reads an instance of SearchResourceEncryptionKey from the JsonReader.
Parameters:
Returns:
Throws:
getAccessCredentials
public AzureActiveDirectoryApplicationCredentials getAccessCredentials()
Get the accessCredentials property: Optional Azure Active Directory credentials used for accessing your Azure Key Vault. Not required if using managed identity instead.
Returns:
getIdentity
public SearchIndexerDataIdentity 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:
getKeyName
public String getKeyName()
Get the keyName property: The name of your Azure Key Vault key to be used to encrypt your data at rest.
Returns:
getKeyVersion
public String getKeyVersion()
Get the keyVersion property: The version of your Azure Key Vault key to be used to encrypt your data at rest.
Returns:
getVaultUrl
public String 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:
setAccessCredentials
public SearchResourceEncryptionKey setAccessCredentials(AzureActiveDirectoryApplicationCredentials accessCredentials)
Set the accessCredentials property: Optional Azure Active Directory credentials used for accessing your Azure Key Vault. Not required if using managed identity instead.
Parameters:
Returns:
setIdentity
public SearchResourceEncryptionKey setIdentity(SearchIndexerDataIdentity identity)
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:
Returns:
setKeyVersion
public SearchResourceEncryptionKey setKeyVersion(String keyVersion)
Set the keyVersion property: The version of your Azure Key Vault key to be used to encrypt your data at rest.
Parameters:
Returns: