Package com.onec.security
Class SecretFields
java.lang.Object
com.onec.security.SecretFields
Applies a transform to the secret String fields of a typed catalog/document aggregate.
Used by the Spring Data callbacks to encrypt before write and decrypt after read, so
application code that goes through the repositories always sees plaintext while the
database only ever holds ciphertext.
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidapply(Object aggregate, MetadataRegistry registry, UnaryOperator<String> transform)
-
Method Details
-
apply
public static void apply(Object aggregate, MetadataRegistry registry, UnaryOperator<String> transform)
-