Annotation Type Sensitive
-
@Retention(RUNTIME) @Target(FIELD) public @interface SensitiveThis annotation is used to mark string attributes that contain sensitive information and should be masked when output to a log file, and encrypted when stored in a database.- Author:
- sagar04
-
-
Field Summary
Fields Modifier and Type Fields Description static java.lang.StringMASK_EMAIL_ADDRESSMask for a email address.static java.lang.StringMASK_PASSWORDMask for a password or alphanumeric pin with various lengths (min length = 4, max length = 100): mask all charactersstatic java.lang.StringMASK_PHONE_NUMBERMask for a phone number: XXX-XXX-dddd leave the last four digits unmaskedstatic java.lang.StringMASK_SSNMASK for a SSN: XXX-XX-dddd leave the last four digits unmasked
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description charcharacterThe character that should be used to mask the value of the annotated attribute.
-