Annotation Interface WeaveRedact


@Retention(RUNTIME) @Target(FIELD) public @interface WeaveRedact
Masks the value of a field or record component when rendered by JWeaver.

Use @WeaveRedact to hide sensitive information such as passwords, API keys, tokens, or personally identifiable data. Redacted values will be replaced by a sequence of mask characters (for example ***).

public class Credentials {
    private String username;

    @WeaveRedact(maskString = '•')
    private String password;
}
Since:
2.0
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
     
  • Element Details

    • maskString

      String maskString
      Default:
      "***"