|
Openfire 3.5.2 Javadoc | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SecurityAuditProvider
A SecurityAuditProvider handles storage and retrieval of security audit logs. If set to write-only, the logs are not viewable from Openfire's admin console. An optional URL can be provided for the location of where the logs can be viewed.
Method Summary | |
---|---|
boolean |
blockGroupEvents()
Returns true if the provider should not send group change (create, edit, delete, etc) related security events on through. |
boolean |
blockUserEvents()
Returns true if the provider should not send user change (create, edit, delete, etc) related security events on through. |
String |
getAuditURL()
Retrieves a URL that can be visited to read the logs audited by this provider. |
SecurityAuditEvent |
getEvent(Integer msgID)
Retrieves a specific event by ID. |
Integer |
getEventCount()
Retrieves number of events recorded. |
List<SecurityAuditEvent> |
getEvents(String username,
Integer skipEvents,
Integer numEvents,
Date startTime,
Date endTime)
Retrieves security events that have occurred, filtered by the parameters passed. |
boolean |
isWriteOnly()
Returns true if the provider logs can be read by Openfire for display from Openfire's own admin interface. |
void |
logEvent(String username,
String summary,
String details)
Records a security event in the audit logs. |
Method Detail |
---|
void logEvent(String username, String summary, String details)
username
- Username of user who performed the security event.summary
- Short description of the event, similar to a subject.details
- Detailed description of the event, can be null if not desired.List<SecurityAuditEvent> getEvents(String username, Integer skipEvents, Integer numEvents, Date startTime, Date endTime)
username
- Username of user to look up. Can be null for no username filtering.skipEvents
- Number of events to skip past (typically for paging). Can be null for first page.numEvents
- Number of events to retrieve. Can be null for "all" events.startTime
- Oldest date of range of events to retrieve. Can be null for forever.endTime
- Most recent date of range of events to retrieve. Can be null for "now".
SecurityAuditEvent getEvent(Integer msgID) throws EventNotFoundException
msgID
- ID number of event to retrieve.
EventNotFoundException
- if event was not found.Integer getEventCount()
boolean isWriteOnly()
getAuditURL()
String getAuditURL()
isWriteOnly()
boolean blockUserEvents()
boolean blockGroupEvents()
|
Openfire 3.5.2 Javadoc | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |