public abstract class HSM extends Object
| Constructor and Description |
|---|
HSM() |
| Modifier and Type | Method and Description |
|---|---|
abstract byte[] |
decrypt(String algorithm,
byte[] cipherText)
Decrypts an array of bytes with a particular algorithm using the HSM.
|
abstract byte[] |
encrypt(String algorithm,
byte[] plainText)
Encrypts an array of bytes with a particular algorithm using the HSM.
|
abstract void |
setClient()
Sets the client to connect to the Azure Key Vault.
|
abstract byte[] |
unwrapKey(String algorithmUrl,
byte[] wrappedKey)
Unwraps a key with a particular algorithm using the HSM.
|
abstract byte[] |
wrapKey(String algorithm,
byte[] key)
Wraps a key with a particular algorithm using the HSM
|
public abstract void setClient()
public abstract byte[] wrapKey(String algorithm, byte[] key)
algorithm - The algorithm to use to wrap the key.key - The key to wrappublic abstract byte[] unwrapKey(String algorithmUrl, byte[] wrappedKey)
algorithmUrl - The algorithm URL to use to unwrap the key.wrappedKey - The key to unwrappublic abstract byte[] encrypt(String algorithm, byte[] plainText)
algorithm - The algorithm to use for encryption.plainText - The array of bytes to encrypt.public abstract byte[] decrypt(String algorithm, byte[] cipherText)
algorithm - The algorithm to use for decryption.cipherText - The encrypted array of bytes.Copyright © 2021. All rights reserved.