abstract class CryptoServiceSpec<T : AuthenticationCredentials, U : KeyConfig>
This is a base class, containing the tests that consist the specification for CryptoService
Any implementations of it can extend this class to verify the implementation conforms to the spec.
CryptoServiceSpec()
This is a base class, containing the tests that consist the specification for CryptoService |
val loggingContextRule: <ERROR CLASS> |
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 |
|
abstract fun createKeyConfig(alias: String): U
Method used to create a basic key config for a given alias. |
|
abstract fun delete(alias: String): Unit
Method used to delete any keys created during the tests. |
|
open fun generateRandomKeyAlias(): String |
|
abstract fun getCryptoService(): CryptoService<T, U>
Method used to retrieve the CryptoService that will be tested. |
class AmazonCloudHsmCryptoServiceTest : CryptoServiceSpec<CloudHsmPasswordCredentials, AmazonCloudHsmKeyConfig> |
|
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. |
|
class SecurosysPrimusXCryptoServiceTest : CryptoServiceSpec<SecurosysAuthenticationCredentials, SecurosysKeyConfig>
This test can be run against the cloud HSM provided by Securosys. It has the @Ignore annotation by default as the placeholder values have to be filled out in order to run it (see wiki page for credentials). |