@Deprecated public final class AuditEvent extends Object
Instances of this class are not thread-safe: any filter can possibly update the data
while
processing the audit event. Special care must be taken when dealing with Request
,
Response
and Context
.
The source property helps to identify the object that emitted the notification.
The timestamp property gives a time marker to keep events organized in a
sequential manner (expressed in milliseconds).
The data property gives a pointer to the captured context
(never null
), request
(never null
) and response
(may be null
when audit happens on the request flow). There is
no way to guarantee, if the notification is processed in an asynchronous way, that the bindings content was not
modified in the meantime.
The tags property helps to qualify this notification (no duplicated values).
Constructor and Description |
---|
AuditEvent(AuditSource source,
long timestamp,
Bindings bindings,
Collection<String> tags)
Deprecated.
Builds a new AuditEvent with provided values.
|
Modifier and Type | Method and Description |
---|---|
Map<String,Object> |
getData()
Deprecated.
Returns the captured
data (never null ). |
AuditSource |
getSource()
Deprecated.
Returns the source of the audit event (never
null ). |
Set<String> |
getTags()
Deprecated.
Returns an immutable set of event's qualifiers (never
null ). |
long |
getTimestamp()
Deprecated.
Returns the timestamp of this event (expressed in milliseconds).
|
public AuditEvent(AuditSource source, long timestamp, Bindings bindings, Collection<String> tags)
source
- source of the event (never null
)timestamp
- creation date of the notification (expressed in milliseconds)bindings
- Exposed data (never null
)tags
- qualifiers (never null
)public AuditSource getSource()
null
).null
).public long getTimestamp()
public Map<String,Object> getData()
data
(never null
).
Notice that this is a pointer to the being processed data (live objects, not copy), so, if this event
is processed asynchronously, the data content may have changed without notice.data
(never null
).Copyright 2011-2015 ForgeRock AS.