Annotation Type Encrypted
@Volatile
@Documented
@Retention(RUNTIME)
@Target({ANNOTATION_TYPE,METHOD,FIELD})
public @interface Encrypted
Indicates the annotated field should be encrypted during serialization
and decrypted during deserialization.
May be used as a meta-annotation.
- See Also:
-
Nested Class Summary
-
Optional Element Summary
Modifier and TypeOptional ElementDescriptionAlias of encrypter to use.Controls deserialization behavior when the provided field value is not encrypted.
-
Element Details
-
encrypter
String encrypterAlias of encrypter to use.May be omitted if the crypto manager has a default encrypter.
- Default:
- "__DEFAULT__"
-
migration
Controls deserialization behavior when the provided field value is not encrypted.Defaults to
Encrypted.Migration.NONE
.- Since:
- 3.2.1
- Default:
- NONE
-