Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for getTotalBlocked (0.06 sec)

  1. 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
            String username = "statsuser";
            String ip = "192.168.1.10";
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 15.8K bytes
    - Viewed (0)
  2. src/main/java/jcifs/util/AuthenticationRateLimiter.java

                this.ipsBlocked = ipsBlocked;
                this.activeAccounts = activeAccounts;
                this.activeIps = activeIps;
            }
    
            public long getTotalBlocked() {
                return totalBlocked;
            }
    
            public long getAccountsLocked() {
                return accountsLocked;
            }
    
            public long getIpsBlocked() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 15.1K bytes
    - Viewed (0)
Back to top