Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 2 of 2 for logFileAccess (0.24 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  1. 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);
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 30 05:58:03 GMT 2025
    - 26.6K bytes
    - Click Count (0)
  2. 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");
        }
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 30 05:58:03 GMT 2025
    - 8.6K bytes
    - Click Count (0)
Back to Top