public class AuthenticationProcessEventAuditor extends AbstractAuthenticationEventAuditor
eventFactory, eventPublisher
Constructor and Description |
---|
AuthenticationProcessEventAuditor(AuditEventPublisher eventPublisher,
AuditEventFactory eventFactory)
Constructor for
AuthenticationProcessEventAuditor . |
Modifier and Type | Method and Description |
---|---|
void |
auditLoginFailure(LoginState loginState)
Log an authentication process failure event.
|
void |
auditLoginFailure(LoginState loginState,
AuditConstants.AuthenticationFailureReason failureReason)
Log an authentication process failure event.
|
void |
auditLoginSuccess(LoginState loginState)
Log an authentication process successful completion event.
|
void |
auditLogout(SSOToken token)
Log a logout event.
|
getFailedPrincipal, getRealmFromState, getRealmFromToken, getTrackingIds, getUserId
@Inject public AuthenticationProcessEventAuditor(AuditEventPublisher eventPublisher, AuditEventFactory eventFactory)
AuthenticationProcessEventAuditor
.eventPublisher
- The publisher responsible for logging the events.eventFactory
- The factory that can be used to create the events.public void auditLoginSuccess(LoginState loginState)
loginState
- The login state object.public void auditLoginFailure(LoginState loginState)
loginState
- The login state object.public void auditLoginFailure(LoginState loginState, AuditConstants.AuthenticationFailureReason failureReason)
loginState
- The login state object.failureReason
- The reason for the failure. If failureReason is null then the value of
LoginState.getErrorCode()
will be mapped to an AuditConstants.AuthenticationFailureReason
with
AuditConstants.AuthenticationFailureReason.LOGIN_FAILED
as default if the value could not be mapped.public void auditLogout(SSOToken token)
token
- The of the event.Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.