- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for logFileAccess (1.29 sec)
-
src/test/java/jcifs/audit/SecurityAuditLoggerTest.java
} @Test @DisplayName("Test log file access") void testLogFileAccess() { logger.logFileAccess("READ", "/path/to/file.txt", true, "testuser"); Map<EventType, Long> stats = logger.getStatistics(); assertEquals(Long.valueOf(1), stats.get(EventType.FILE_ACCESS), "Should have 1 file access event"); }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 8.6K bytes - Viewed (0) -
src/main/java/jcifs/audit/SecurityAuditLogger.java
* * @param path file path * @param operation operation performed * @param success whether operation succeeded * @param username user performing operation */ public void logFileAccess(String path, String operation, boolean success, String username) { Map<String, Object> context = getContextMap(); context.put("path", sanitizePath(path)); context.put("operation", operation);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 26.6K bytes - Viewed (0)