Package org.apache.activemq.broker.util
Class AuditLogEntry
- java.lang.Object
-
- org.apache.activemq.broker.util.AuditLogEntry
-
- Direct Known Subclasses:
HttpAuditLogEntry
,JMXAuditLogEntry
public class AuditLogEntry extends Object
-
-
Constructor Summary
Constructors Constructor Description AuditLogEntry()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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)
-
-
-
Method Detail
-
getUser
public String getUser()
-
setUser
public void setUser(String user)
-
getTimestamp
public long getTimestamp()
-
setTimestamp
public void setTimestamp(long timestamp)
-
getFormattedTime
public String getFormattedTime()
-
getOperation
public String getOperation()
-
setOperation
public void setOperation(String operation)
-
getRemoteAddr
public String getRemoteAddr()
-
setRemoteAddr
public void setRemoteAddr(String remoteAddr)
-
sanitizeArguments
public static Object[] sanitizeArguments(Object[] arguments, Method method)
Method to remove any sensitive parameters before logging. Replaces any sensitive value with ****. Sensitive values are defined on MBean interface implementation method parameters using the @Sensitive annotation.- Parameters:
arguments
- A array of arguments to test against method signaturemethod
- The method to test the arguments against.
-
-