public class AuditLogEntry extends Object
| Modifier and Type | Field and Description |
|---|---|
protected String |
operation |
protected Map<String,Object> |
parameters |
protected String |
remoteAddr |
protected long |
timestamp |
protected String |
user |
| Constructor and Description |
|---|
AuditLogEntry() |
| Modifier and Type | Method and Description |
|---|---|
String |
getFormattedTime() |
String |
getOperation() |
Map<String,Object> |
getParameters() |
String |
getRemoteAddr() |
long |
getTimestamp() |
String |
getUser() |
static Object[] |
sanitizeArguments(Object[] arguments,
Method method)
Method to remove any sensitive parameters before logging.
|
void |
setOperation(String operation) |
void |
setParameters(Map<String,Object> parameters) |
void |
setRemoteAddr(String remoteAddr) |
void |
setTimestamp(long timestamp) |
void |
setUser(String user) |
protected long timestamp
protected String remoteAddr
protected Map<String,Object> parameters
public AuditLogEntry()
public long getTimestamp()
public void setTimestamp(long timestamp)
public String getFormattedTime()
public String getOperation()
public void setOperation(String operation)
public String getRemoteAddr()
public void setRemoteAddr(String remoteAddr)
public Map<String,Object> getParameters()
public void setParameters(Map<String,Object> parameters)
public static Object[] sanitizeArguments(Object[] arguments, Method method)
arguments - A array of arguments to test against method signaturemethod - The method to test the arguments against.Copyright © 2005–2015 FuseSource, Corp.. All rights reserved.