com.ibm.websphere.ras.annotation
Annotation Type Sensitive
- @Target(value={CONSTRUCTOR,FIELD,METHOD,PARAMETER,TYPE})
- @Retention(value=RUNTIME) public @interface Sensitive
toString
method on the
type, only the class name and hash code or the primitive type identifier will
be traced.
For example:
@Sensitive public String normalizePassword(@Sensitive password) { if (password == null) { return ""; } return password; }will trace the input password as
<sensitive java.lang.String>
if the input password was
non-null or null
if it was null. The same pattern will be
applied to return values.
In the future it is possible that sensitive types and fields can be annotated such that they will not be introspected during FFDC.