|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |
@Target(value={CONSTRUCTOR,FIELD,METHOD,PARAMETER,TYPE}) @Retention(value=RUNTIME) public @interface Sensitive
Indicates that the return type from a method or a parameter to a method is
considered "sensitive" and should not be traced via the trace
instrumentation. Instead of invoking the 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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |