- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for ips (0.01 sec)
-
src/main/java/jcifs/util/AuthenticationRateLimiter.java
IpAttempts ip = entry.getValue(); return !ip.isBlocked() && ip.getLastAttempt().plus(cleanupInterval).isBefore(now); }); log.debug("Cleaned up rate limiter entries. Accounts: {}, IPs: {}", accountAttempts.size(), ipAttempts.size()); } /** * Manually unlock an account * * @param username the username to unlock
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 15.1K bytes - Viewed (0) -
src/test/java/jcifs/util/AuthenticationRateLimiterTest.java
@Test public void testDifferentIpsIndependent() throws Exception { // Different IPs should have independent limits for (int i = 1; i <= 3; i++) { assertTrue(rateLimiter.checkAttempt("user1", "192.168.1." + i)); rateLimiter.recordFailure("user1", "192.168.1." + i); } // All different IPs should still be allowed for (int i = 1; i <= 3; i++) {Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 15.8K bytes - Viewed (0)