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 String user
protected long timestamp
protected String operation
protected String remoteAddr
public String getUser()
public void setUser(String user)
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 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 © 2017 Power TAC. All rights reserved.