BlobCustomerProvidedKey Class
- java.
lang. Object - com.
microsoft. azure. storage. blob. BlobCustomerProvidedKey
- com.
public class BlobCustomerProvidedKey
Immutable wrapper for an encryption key to be used with client provided key encryption.
Constructor Summary
Constructor | Description |
---|---|
BlobCustomerProvidedKey(byte[] key) |
Creates a new wrapper for a client provided key. |
BlobCustomerProvidedKey(String key) |
Creates a new wrapper for a client provided key. |
Method Summary
Modifier and Type | Method and Description |
---|---|
String |
getEncryptionAlgorithm()
Gets the algorithm to use this key with. |
String |
getKey()
Gets the encryption key. |
String |
getKeySHA256()
Gets the encryption key's hash. |
Constructor Details
BlobCustomerProvidedKey
public BlobCustomerProvidedKey(byte[] key)
Creates a new wrapper for a client provided key.
Parameters:
Throws:
BlobCustomerProvidedKey
public BlobCustomerProvidedKey(String key)
Creates a new wrapper for a client provided key.
Parameters:
Throws:
Method Details
getEncryptionAlgorithm
public String getEncryptionAlgorithm()
Gets the algorithm to use this key with.
Returns:
getKey
public String getKey()
Gets the encryption key.
Returns:
getKeySHA256
public String getKeySHA256()
Gets the encryption key's hash.
Returns: