public final class JavaKeyStoreGdprEncryption extends AbstractGdprEncryption
GdprEncryption that has support for PKCS12 and JCEKS keystores.
Not intended for production use other than possibly for single node applications as it
saves to a local file so won't be available for all other nodes in the cluster.
If your application is distributed you'll need to create a KeyManagement implementation for your
distributed secret store e.g. Vault and use that with
AbstractGdprEncryption.
The Java Keystore API is blocking so it's important to use this from a dedicated dispatcher.
It can be enabled in configuration with:
akka.persistence.gdpr.encryption-provider = "akka.persistence.gdpr.jca-provider"
| Constructor and Description |
|---|
JavaKeyStoreGdprEncryption(akka.actor.ExtendedActorSystem system,
java.lang.String configPath) |
| Modifier and Type | Method and Description |
|---|---|
KeyManagement |
keyManagement()
A
KeyManagement for creating and retrieving keys. |
decrypt, encrypt, EncryptionMethod, gdprSettings, secureRandom, shredpublic JavaKeyStoreGdprEncryption(akka.actor.ExtendedActorSystem system,
java.lang.String configPath)
public KeyManagement keyManagement()
AbstractGdprEncryptionKeyManagement for creating and retrieving keys.keyManagement in class AbstractGdprEncryption