Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for ofMinutes (0.04 sec)

  1. src/main/java/jcifs/util/AuthenticationRateLimiter.java

        private final AtomicLong totalIpsBlocked = new AtomicLong(0);
    
        /**
         * Create rate limiter with default settings
         */
        public AuthenticationRateLimiter() {
            this(5, 10, 100, Duration.ofMinutes(30), Duration.ofMinutes(5));
        }
    
        /**
         * Create rate limiter with custom settings
         *
         * @param maxAttemptsPerAccount max failed attempts per account before lockout
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 15.1K bytes
    - Viewed (0)
  2. src/test/java/jcifs/util/AuthenticationRateLimiterTest.java

                    5, // max attempts per IP
                    20, // max global attempts per minute
                    Duration.ofSeconds(2), // short lockout for testing
                    Duration.ofMinutes(1) // cleanup interval
            );
        }
    
        @AfterEach
        public void tearDown() {
            if (rateLimiter != null) {
                rateLimiter.close();
            }
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 15.8K bytes
    - Viewed (0)
Back to top