Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for RateLimiterStats (0.93 sec)

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

                return true;
            }
            return false;
        }
    
        /**
         * Get statistics
         */
        public RateLimiterStats getStats() {
            return new RateLimiterStats(totalAttemptsBlocked.get(), totalAccountsLocked.get(), totalIpsBlocked.get(), accountAttempts.size(),
                    ipAttempts.size());
        }
    
        /**
    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

        }
    
        @Test
        public void testStatistics() throws Exception {
            // Initially stats should be zero
            AuthenticationRateLimiter.RateLimiterStats stats = rateLimiter.getStats();
            assertEquals(0, stats.getTotalBlocked());
            assertEquals(0, stats.getAccountsLocked());
            assertEquals(0, stats.getIpsBlocked());
    
            // Create some activity
    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