Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 24 for violation (0.07 sec)

  1. src/test/java/org/codelibs/fess/validation/CronExpressionTest.java

            assertFalse(violations.isEmpty());
            assertEquals(1, violations.size());
    
            ConstraintViolation<CustomMessageBean> violation = violations.iterator().next();
            assertEquals("Invalid cron expression format", violation.getMessage());
        }
    
        // Test annotation on method parameter
        public void test_annotationOnMethod() throws Exception {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 12.2K bytes
    - Viewed (0)
  2. src/test/java/jcifs/audit/SecurityAuditLoggerTest.java

            logger.logSecurityViolation("Test violation with stack trace", context);
    
            logger.setIncludeStackTrace(false);
            logger.logSecurityViolation("Test violation without stack trace", context);
    
            Map<EventType, Long> stats = logger.getStatistics();
            assertEquals(Long.valueOf(2), stats.get(EventType.SECURITY_VIOLATION), "Should have 2 security violation events");
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 8.6K bytes
    - Viewed (0)
  3. src/test/java/jcifs/smb/SmbExceptionTest.java

            assertTrue(exception.getMessage().toLowerCase().contains("access") && exception.getMessage().toLowerCase().contains("denied"));
        }
    
        @Test
        @DisplayName("Should format error message for sharing violation")
        void testSharingViolationError() {
            // Given
            int ntStatus = NtStatus.NT_STATUS_SHARING_VIOLATION;
    
            // When
            SmbException exception = new SmbException(ntStatus, false);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7.9K bytes
    - Viewed (0)
  4. src/main/java/jcifs/audit/SecurityAuditLogger.java

            returnContextMap(context);
        }
    
        /**
         * Log a security violation
         *
         * @param violation description of violation
         * @param context additional context
         */
        public void logSecurityViolation(String violation, Map<String, Object> context) {
            String message = "Security violation detected: " + violation;
            logEvent(EventType.SECURITY_VIOLATION, Severity.CRITICAL, message, context);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 26.6K bytes
    - Viewed (0)
  5. src/main/java/jcifs/smb/NtStatus.java

        int NT_STATUS_LOGON_FAILURE = 0xC000006d;
        /** Logon failure: user account restriction */
        int NT_STATUS_ACCOUNT_RESTRICTION = 0xC000006e;
        /** Logon failure: account logon time restriction violation */
        int NT_STATUS_INVALID_LOGON_HOURS = 0xC000006f;
        /** Logon failure: user not allowed to log on to this computer */
        int NT_STATUS_INVALID_WORKSTATION = 0xC0000070;
        /** The user's password has expired */
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 14.9K bytes
    - Viewed (0)
  6. src/main/java/jcifs/smb1/smb1/NtStatus.java

        int NT_STATUS_LOGON_FAILURE = 0xC000006d;
        /** Logon failure: user account restriction */
        int NT_STATUS_ACCOUNT_RESTRICTION = 0xC000006e;
        /** Logon failure: account logon time restriction violation */
        int NT_STATUS_INVALID_LOGON_HOURS = 0xC000006f;
        /** Logon failure: user not allowed to log on to this computer */
        int NT_STATUS_INVALID_WORKSTATION = 0xC0000070;
        /** The user's password has expired */
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 13.2K bytes
    - Viewed (0)
  7. src/test/java/jcifs/smb/NtStatusTest.java

            // Should be an error status (0xC prefix)
            assertTrue((status & (int) 0xC0000000L) == (int) 0xC0000000L);
        }
    
        @Test
        @DisplayName("Should handle sharing violation status")
        void testSharingViolationStatus() {
            // Given
            int status = NtStatus.NT_STATUS_SHARING_VIOLATION;
    
            // When/Then
            assertEquals((int) 0xC0000043L, status);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.6K bytes
    - Viewed (0)
  8. src/main/java/jcifs/smb/SmbFile.java

            if (getType() == TYPE_NAMED_PIPE) { // try opening the pipe for reading?
                return true;
            }
            return exists(); // try opening and catch sharing violation?
        }
    
        @Override
        public boolean canWrite() throws SmbException {
            if (getType() == TYPE_NAMED_PIPE) { // try opening the pipe for writing?
                return true;
            }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 103.2K bytes
    - Viewed (0)
  9. src/main/java/jcifs/smb1/smb1/SmbFile.java

            if (getType() == TYPE_NAMED_PIPE) { // try opening the pipe for reading?
                return true;
            }
            return exists(); // try opening and catch sharing violation?
        }
    
        /**
         * Tests to see if the file this <code>SmbFile</code> represents
         * exists and is not marked read-only. By default, resources are
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 112.2K bytes
    - Viewed (0)
  10. src/main/java/jcifs/internal/SMBProtocolDecodingException.java

    import jcifs.CIFSException;
    
    /**
     * Exception thrown when errors occur during SMB protocol message decoding.
     * Indicates that an SMB message could not be properly parsed or decoded due to
     * malformed data, protocol violations, or unsupported message formats.
     *
     * @author mbechler
     */
    public class SMBProtocolDecodingException extends CIFSException {
    
        /**
         *
         */
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 2.2K bytes
    - Viewed (0)
Back to top