public class CustomerProvidedKey extends Object
Constructor and Description |
---|
CustomerProvidedKey(byte[] key)
Creates a new wrapper for a client provided key.
|
CustomerProvidedKey(String key)
Creates a new wrapper for a client provided key.
|
Modifier and Type | Method and Description |
---|---|
EncryptionAlgorithmType |
getEncryptionAlgorithm()
Gets the algorithm to use this key with.
|
String |
getKey()
Gets the encryption key.
|
String |
getKeySha256()
Gets the encryption key's hash.
|
public CustomerProvidedKey(String key)
key
- The encryption key encoded as a base64 string.RuntimeException
- If "SHA-256" cannot be found.public CustomerProvidedKey(byte[] key)
key
- The encryption key bytes.RuntimeException
- If "SHA-256" cannot be found.public String getKey()
public String getKeySha256()
public EncryptionAlgorithmType getEncryptionAlgorithm()
Copyright © 2019 Microsoft Corporation. All rights reserved.