public abstract class AbstractAuthenticationEventAuditor extends Object
Modifier and Type | Field and Description |
---|---|
protected AuditEventFactory |
eventFactory |
protected AuditEventPublisher |
eventPublisher |
Constructor and Description |
---|
AbstractAuthenticationEventAuditor(AuditEventPublisher eventPublisher,
AuditEventFactory eventFactory)
Constructor for
AbstractAuthenticationEventAuditor . |
Modifier and Type | Method and Description |
---|---|
protected String |
getFailedPrincipal(LoginState loginState)
Get the failed username from the of the event.
|
protected String |
getRealmFromState(LoginState loginState)
Get the realm from the login state of the event.
|
protected String |
getRealmFromToken(SSOToken token)
Get the realm from the of the event.
|
protected Set<String> |
getTrackingIds(LoginState loginState)
Get the tracking ID from the login state of the event.
|
protected String |
getUserId(String principalName,
String realm)
Get the universal user ID.
|
protected final AuditEventPublisher eventPublisher
protected final AuditEventFactory eventFactory
public AbstractAuthenticationEventAuditor(AuditEventPublisher eventPublisher, AuditEventFactory eventFactory)
AbstractAuthenticationEventAuditor
.eventPublisher
- The publisher responsible for logging the events.eventFactory
- The factory that can be used to create the events.protected String getUserId(String principalName, String realm)
principalName
- The principal name.realm
- The realm.protected Set<String> getTrackingIds(LoginState loginState)
loginState
- The login state of the event.protected String getRealmFromState(LoginState loginState)
loginState
- The login state of the event.protected String getRealmFromToken(SSOToken token)
token
- The of the event.protected String getFailedPrincipal(LoginState loginState)
loginState
- The login state of the event.Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.