Package com.iplanet.dpro.session.service
Class SessionAuditor
- java.lang.Object
-
- com.iplanet.dpro.session.service.SessionAuditor
-
- All Implemented Interfaces:
InternalSessionListener
@Singleton public class SessionAuditor extends Object implements InternalSessionListener
Responsible for publishing audit activity for changes toSessionInfo
objects.- Since:
- 13.0.0
-
-
Constructor Summary
Constructors Constructor Description SessionAuditor(AuditEventPublisher auditEventPublisher, AuditEventFactory auditEventFactory, PrivilegedAction<SSOToken> adminTokenAction, DNWrapper dnWrapper)
Create a new Auditor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
auditActivity(SessionInfo sessionInfo, SessionEventType eventType, long timestamp)
void
onEvent(InternalSessionEvent event)
Callback method allowing observers to receive notification ofInternalSession
events.
-
-
-
Constructor Detail
-
SessionAuditor
@Inject public SessionAuditor(AuditEventPublisher auditEventPublisher, AuditEventFactory auditEventFactory, PrivilegedAction<SSOToken> adminTokenAction, DNWrapper dnWrapper)
Create a new Auditor.- Parameters:
auditEventPublisher
- AuditEventPublisher to which publishing of events can be delegated.auditEventFactory
- AuditEventFactory for audit event builders.adminTokenAction
- PrivilegedAction for populating the audit event runas field with the admin user ID.
-
-
Method Detail
-
onEvent
public void onEvent(InternalSessionEvent event)
Description copied from interface:InternalSessionListener
Callback method allowing observers to receive notification ofInternalSession
events.- Specified by:
onEvent
in interfaceInternalSessionListener
- Parameters:
event
- Non nullInternalSessionEvent
describing the event which occurred.
-
auditActivity
public void auditActivity(SessionInfo sessionInfo, SessionEventType eventType, long timestamp)
-
-