public class AuditMessage extends Object
Modifier and Type | Class and Description |
---|---|
static class |
AuditMessage.LogonInfo
Contains information related to a logon attempt
|
Constructor and Description |
---|
AuditMessage(String context,
String activity,
AuditMessage.LogonInfo info,
Exception e) |
AuditMessage(String context,
String activity,
Session session) |
AuditMessage(String context,
String activity,
String[] resources,
CommandContext commandContext) |
Modifier and Type | Method and Description |
---|---|
String |
getActivity() |
CommandContext |
getCommandContext() |
String |
getContext() |
Exception |
getException()
The exception associated with a failed logon attempt.
|
AuditMessage.LogonInfo |
getLogonInfo()
The related
AuditMessage.LogonInfo only if this is a logon related event |
String |
getPrincipal()
The user name or null if the session has not yet been established.
|
String[] |
getResources()
The list of relevant resources for the audit event.
|
Session |
getSession()
The
Session for the event or null if one has not been established. |
String |
toString() |
public AuditMessage(String context, String activity, String[] resources, CommandContext commandContext)
public AuditMessage(String context, String activity, AuditMessage.LogonInfo info, Exception e)
public AuditMessage.LogonInfo getLogonInfo()
AuditMessage.LogonInfo
only if this is a logon related eventpublic Session getSession()
Session
for the event or null if one has not been established.public String getContext()
public String getActivity()
public String getPrincipal()
public String[] getResources()
public CommandContext getCommandContext()
public Exception getException()
Copyright © 2020. All rights reserved.