public final class DelegatingGdprEncryption extends GdprEncryption
| Constructor and Description |
|---|
DelegatingGdprEncryption(GdprEncryption delegate) |
| Modifier and Type | Method and Description |
|---|---|
java.util.concurrent.CompletionStage<java.util.Optional<byte[]>> |
decrypt(byte[] payload,
java.lang.String dataSubjectId)
Decrypt the given payload with the key identified by dataSubjectId.
|
java.util.concurrent.CompletionStage<byte[]> |
encrypt(byte[] payload,
java.lang.String dataSubjectId)
Encrypt the given payload with the key identified by dataSubjectId.
|
java.util.concurrent.CompletionStage<akka.Done> |
shred(java.lang.String dataSubjectId)
Remove the key identified by dataSubjectId.
|
apply, createExtension, equals, get, hashCode, lookuppublic DelegatingGdprEncryption(GdprEncryption delegate)
public java.util.concurrent.CompletionStage<java.util.Optional<byte[]>> decrypt(byte[] payload,
java.lang.String dataSubjectId)
GdprEncryptiondecrypt in class GdprEncryptionpayload - (undocumented)dataSubjectId - (undocumented)Optional.empty if the key has been deletedpublic java.util.concurrent.CompletionStage<byte[]> encrypt(byte[] payload,
java.lang.String dataSubjectId)
GdprEncryptionencrypt in class GdprEncryptionpayload - (undocumented)dataSubjectId - (undocumented)public java.util.concurrent.CompletionStage<akka.Done> shred(java.lang.String dataSubjectId)
GdprEncryptionshred in class GdprEncryptiondataSubjectId - (undocumented)