public interface KeyManagement
| Modifier and Type | Method and Description |
|---|---|
java.util.concurrent.CompletionStage<java.util.Optional<javax.crypto.SecretKey>> |
getKey(java.lang.String dataSubjectId)
Retrieve the key identified by dataSubjectId, returning None if the key has been shredded.
|
java.util.concurrent.CompletionStage<javax.crypto.SecretKey> |
getOrCreateKey(java.lang.String dataSubjectId)
Create a [SecretKey] if it doesn't exist already.
|
java.util.concurrent.CompletionStage<akka.Done> |
shred(java.lang.String dataSubjectId)
Remove the key identified by dataSubjectId permanently.
|
java.util.concurrent.CompletionStage<java.util.Optional<javax.crypto.SecretKey>> getKey(java.lang.String dataSubjectId)
dataSubjectId - (undocumented)java.util.concurrent.CompletionStage<javax.crypto.SecretKey> getOrCreateKey(java.lang.String dataSubjectId)
If using AbstractGdprEncryption this must be an AES key.
dataSubjectId - (undocumented)java.util.concurrent.CompletionStage<akka.Done> shred(java.lang.String dataSubjectId)
dataSubjectId - (undocumented)