class AzureKeyVaultCryptoServiceTest : CryptoServiceSpec<AzureKeyVaultCredentials, AzureKeyVaultKeyConfig>
These tests need to be run manually. They require an Amazon KeyVault (and the associated service principal) to be set up and will perform operations that are not free of charge.
Refer to https://docs.microsoft.com/en-gb/azure/key-vault/
This can be done using the scripts available under the resources folder. The only pre-requisites are:
az login
(See: https://docs.microsoft.com/en-us/cli/azure/install-azure-cli)To execute the tests:
resources/hsm-setup/azure
and execute setup_resources.sh
, which creates all the necessary Azure
resources and resource files for the tests below.resources/hsm-setup/azure
and execute tear_down_resources.sh
, which removes all the
previously created Azure resources and local resource files.
AzureKeyVaultCryptoServiceTest()
These tests need to be run manually. They require an Amazon KeyVault (and the associated service principal) to be set up and will perform operations that are not free of charge. |
val loggingContextRule: <ERROR CLASS> |
Generate P-256 ECDSA K1 key with hardware protection, sign and verify data |
fun Generate P-256 ECDSA K1 key with hardware protection, sign and verify data(): Unit |
fun createKeyConfig(alias: String): AzureKeyVaultKeyConfig
Method used to create a basic key config for a given alias. |
|
fun delete(alias: String): Unit
Method used to delete any keys created during the tests. |
|
fun generateRandomKeyAlias(): String |
|
fun getCryptoService(): CryptoService<AzureKeyVaultCredentials, AzureKeyVaultKeyConfig>
Method used to retrieve the CryptoService that will be tested. |
fun Content signer works with HsmX509Utilities(): Unit |
|
fun Generate key, then sign and verify data(): Unit |
|
fun When key does not exist, getContentSigner should throw(): Unit |
|
fun When key does not exist, signing should throw(): Unit |