-
- Enclosing interface:
- AuditProvider
public static interface AuditProvider.AuditSourceSource of an audit source (as in "where this audit event originated").
-
-
Method Summary
All Methods Static Methods Instance Methods Default Methods Modifier and Type Method Description default Optional<String>className()Name of the class that caused this event.static AuditProvider.AuditSourcecreate()Build an audit source.default Optional<String>fileName()File name of the source that caused this event.static booleanisSecurityClass(StackWalker.StackFrame element)default OptionalIntlineNumber()Line number within the source file that caused this event.default Optional<String>methodName()Method name that caused this event.
-
-
-
Method Detail
-
create
static AuditProvider.AuditSource create()
Build an audit source.- Returns:
- AuditSource for current stack trace
-
isSecurityClass
static boolean isSecurityClass(StackWalker.StackFrame element)
-
className
default Optional<String> className()
Name of the class that caused this event.- Returns:
- class name or empty if not provided
-
methodName
default Optional<String> methodName()
Method name that caused this event.- Returns:
- method name or empty if not provided
-
fileName
default Optional<String> fileName()
File name of the source that caused this event.- Returns:
- file name or empty if not provided
-
lineNumber
default OptionalInt lineNumber()
Line number within the source file that caused this event.- Returns:
- line number or empty if not provided
-
-