for (Principal principal : subject.getPrincipals()) {
caller += principal.getName() + " ";
}
}
AuditLogEntry entry = new JMXAuditLogEntry();
entry.setUser(caller);
entry.setTimestamp(System.currentTimeMillis());
entry.setOperation(this.getMBeanInfo().getClassName() + "." + s);
entry.getParameters().put("arguments", objects);
auditLog.log(entry);
}
return super.invoke(s, objects, strings);
}