Package com.azure.storage.blob.models
Class CpkInfo
- java.lang.Object
-
- com.azure.storage.blob.models.CpkInfo
-
public final class CpkInfo extends Object
Parameter group.
-
-
Constructor Summary
Constructors Constructor Description CpkInfo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EncryptionAlgorithmType
getEncryptionAlgorithm()
Get the encryptionAlgorithm property: The algorithm used to produce the encryption key hash.String
getEncryptionKey()
Get the encryptionKey property: Optional.String
getEncryptionKeySha256()
Get the encryptionKeySha256 property: The SHA-256 hash of the provided encryption key.CpkInfo
setEncryptionAlgorithm(EncryptionAlgorithmType encryptionAlgorithm)
Set the encryptionAlgorithm property: The algorithm used to produce the encryption key hash.CpkInfo
setEncryptionKey(String encryptionKey)
Set the encryptionKey property: Optional.CpkInfo
setEncryptionKeySha256(String encryptionKeySha256)
Set the encryptionKeySha256 property: The SHA-256 hash of the provided encryption key.
-
-
-
Method Detail
-
getEncryptionKey
public String getEncryptionKey()
Get the encryptionKey property: Optional. Specifies the encryption key to use to encrypt the data provided in the request. If not specified, encryption is performed with the root account encryption key. For more information, see Encryption at Rest for Azure Storage Services.- Returns:
- the encryptionKey value.
-
setEncryptionKey
public CpkInfo setEncryptionKey(String encryptionKey)
Set the encryptionKey property: Optional. Specifies the encryption key to use to encrypt the data provided in the request. If not specified, encryption is performed with the root account encryption key. For more information, see Encryption at Rest for Azure Storage Services.- Parameters:
encryptionKey
- the encryptionKey value to set.- Returns:
- the CpkInfo object itself.
-
getEncryptionKeySha256
public String getEncryptionKeySha256()
Get the encryptionKeySha256 property: The SHA-256 hash of the provided encryption key. Must be provided if the x-ms-encryption-key header is provided.- Returns:
- the encryptionKeySha256 value.
-
setEncryptionKeySha256
public CpkInfo setEncryptionKeySha256(String encryptionKeySha256)
Set the encryptionKeySha256 property: The SHA-256 hash of the provided encryption key. Must be provided if the x-ms-encryption-key header is provided.- Parameters:
encryptionKeySha256
- the encryptionKeySha256 value to set.- Returns:
- the CpkInfo object itself.
-
getEncryptionAlgorithm
public EncryptionAlgorithmType getEncryptionAlgorithm()
Get the encryptionAlgorithm property: The algorithm used to produce the encryption key hash. Currently, the only accepted value is "AES256". Must be provided if the x-ms-encryption-key header is provided.- Returns:
- the encryptionAlgorithm value.
-
setEncryptionAlgorithm
public CpkInfo setEncryptionAlgorithm(EncryptionAlgorithmType encryptionAlgorithm)
Set the encryptionAlgorithm property: The algorithm used to produce the encryption key hash. Currently, the only accepted value is "AES256". Must be provided if the x-ms-encryption-key header is provided.- Parameters:
encryptionAlgorithm
- the encryptionAlgorithm value to set.- Returns:
- the CpkInfo object itself.
-
-