public final class BlobCustomerProvidedKey extends Object
| Constructor and 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.
|
| 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.
|
public BlobCustomerProvidedKey(String key) throws NoSuchAlgorithmException
key - The encryption key encoded as a base64 string.NoSuchAlgorithmException - Throws if MessageDigest "SHA-256" cannot be found.public BlobCustomerProvidedKey(byte[] key)
throws NoSuchAlgorithmException
key - The encryption key bytes.NoSuchAlgorithmException - Throws if MessageDigest "SHA-256" cannot be found.public String getKey()
public String getKeySHA256()
public String getEncryptionAlgorithm()
Copyright © 2021. All Rights Reserved.