@Singleton public class SessionAuditor extends Object implements InternalSessionListener
SessionInfo
objects.Constructor and Description |
---|
SessionAuditor(AuditEventPublisher auditEventPublisher,
AuditEventFactory auditEventFactory,
PrivilegedAction<SSOToken> adminTokenAction,
DNWrapper dnWrapper)
Create a new Auditor.
|
Modifier and Type | Method and Description |
---|---|
void |
auditActivity(SessionInfo sessionInfo,
SessionEventType eventType,
long timestamp) |
void |
onEvent(InternalSessionEvent event)
Callback method allowing observers to receive notification of
InternalSession events. |
@Inject public SessionAuditor(AuditEventPublisher auditEventPublisher, AuditEventFactory auditEventFactory, PrivilegedAction<SSOToken> adminTokenAction, DNWrapper dnWrapper)
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.public void onEvent(InternalSessionEvent event)
InternalSessionListener
InternalSession
events.onEvent
in interface InternalSessionListener
event
- Non null InternalSessionEvent
describing the event which occurred.public void auditActivity(SessionInfo sessionInfo, SessionEventType eventType, long timestamp)
Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.