Package org.teiid.logging
Class AuditMessage
- java.lang.Object
-
- org.teiid.logging.AuditMessage
-
public class AuditMessage extends Object
Log format for auditing.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAuditMessage.LogonInfoContains information related to a logon attempt
-
Constructor Summary
Constructors Constructor Description AuditMessage(String context, String activity, String[] resources, CommandContext commandContext)AuditMessage(String context, String activity, Session session)AuditMessage(String context, String activity, AuditMessage.LogonInfo info, Exception e)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetActivity()CommandContextgetCommandContext()StringgetContext()ExceptiongetException()The exception associated with a failed logon attempt.AuditMessage.LogonInfogetLogonInfo()The relatedAuditMessage.LogonInfoonly if this is a logon related eventStringgetPrincipal()The user name or null if the session has not yet been established.String[]getResources()The list of relevant resources for the audit event.SessiongetSession()TheSessionfor the event or null if one has not been established.StringtoString()
-
-
-
Constructor Detail
-
AuditMessage
public AuditMessage(String context, String activity, String[] resources, CommandContext commandContext)
-
AuditMessage
public AuditMessage(String context, String activity, AuditMessage.LogonInfo info, Exception e)
-
-
Method Detail
-
getLogonInfo
public AuditMessage.LogonInfo getLogonInfo()
The relatedAuditMessage.LogonInfoonly if this is a logon related event- Returns:
-
getSession
public Session getSession()
TheSessionfor the event or null if one has not been established.- Returns:
-
getContext
public String getContext()
-
getActivity
public String getActivity()
-
getPrincipal
public String getPrincipal()
The user name or null if the session has not yet been established.- Returns:
-
getResources
public String[] getResources()
The list of relevant resources for the audit event. Will be null for logon/logoff events.- Returns:
-
getCommandContext
public CommandContext getCommandContext()
-
getException
public Exception getException()
The exception associated with a failed logon attempt.- Returns:
-
-