public static class LoginAuditEvent.LoginAuditEventBuilder extends AbstractUserAuditEvent.AbstractUserAuditEventBuilder<LoginAuditEvent,LoginAuditEvent.LoginAuditEventBuilder>
| Modifier and Type | Method and Description |
|---|---|
protected void |
buildAuditMessage(StringBuilder builder)
Appends to audit event details the user name and remote ip of the host
where user actions originates from.
|
protected LoginAuditEvent |
newAuditEvent()
Creates a new audit event instance from this builder.
|
LoginAuditEvent.LoginAuditEventBuilder |
withConsecutiveFailures(Integer consecutiveFailures)
Set the number of consecutive authentication failures since the last successful authentication
attempt
|
LoginAuditEvent.LoginAuditEventBuilder |
withReasonOfFailure(String reasonOfFailure) |
LoginAuditEvent.LoginAuditEventBuilder |
withRoles(Map<String,List<String>> roles)
Sets the list of roles possessed by the principal requesting access to a resource.
|
withProxyUserName, withRemoteIp, withUserNamebuild, self, withTimestampprotected void buildAuditMessage(StringBuilder builder)
buildAuditMessage in class AbstractUserAuditEvent.AbstractUserAuditEventBuilder<LoginAuditEvent,LoginAuditEvent.LoginAuditEventBuilder>builder - builder for the audit message details.public LoginAuditEvent.LoginAuditEventBuilder withRoles(Map<String,List<String>> roles)
roles - public LoginAuditEvent.LoginAuditEventBuilder withReasonOfFailure(String reasonOfFailure)
public LoginAuditEvent.LoginAuditEventBuilder withConsecutiveFailures(Integer consecutiveFailures)
consecutiveFailures - the number of consecutive authentication failuresprotected LoginAuditEvent newAuditEvent()
newAuditEvent in class AbstractAuditEvent.AbstractAuditEventBuilder<LoginAuditEvent,LoginAuditEvent.LoginAuditEventBuilder>Copyright © 2022 Apache Software Foundation. All rights reserved.