public interface KeyManagement
Implementations must be thread-safe.
| Modifier and Type | Method and Description |
|---|---|
scala.concurrent.Future<scala.Option<javax.crypto.SecretKey>> |
getKey(java.lang.String dataSubjectId)
Retrieve the key identified by dataSubjectId, returning None if the key has been shredded.
|
scala.concurrent.Future<javax.crypto.SecretKey> |
getOrCreateKey(java.lang.String dataSubjectId)
Create a
SecretKey if it doesn't exist already. |
scala.concurrent.Future<akka.Done> |
shred(java.lang.String dataSubjectId)
Remove the key identified by dataSubjectId permanently.
|
scala.concurrent.Future<scala.Option<javax.crypto.SecretKey>> getKey(java.lang.String dataSubjectId)
dataSubjectId - (undocumented)scala.concurrent.Future<javax.crypto.SecretKey> getOrCreateKey(java.lang.String dataSubjectId)
SecretKey if it doesn't exist already. Length of the key should be taken
from akka.persistence.gdpr.key-size
If using AbstractGdprEncryption this must be an AES key.
dataSubjectId - (undocumented)scala.concurrent.Future<akka.Done> shred(java.lang.String dataSubjectId)
dataSubjectId - (undocumented)