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 toSessionInfoobjects.- 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 voidauditActivity(SessionInfo sessionInfo, SessionEventType eventType, long timestamp)voidonEvent(InternalSessionEvent event)Callback method allowing observers to receive notification ofInternalSessionevents.
-
-
-
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:InternalSessionListenerCallback method allowing observers to receive notification ofInternalSessionevents.- Specified by:
onEventin interfaceInternalSessionListener- Parameters:
event- Non nullInternalSessionEventdescribing the event which occurred.
-
auditActivity
public void auditActivity(SessionInfo sessionInfo, SessionEventType eventType, long timestamp)
-
-