- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for unblockIp (1.45 sec)
-
src/main/java/jcifs/util/AuthenticationRateLimiter.java
} /** * Manually unblock an IP * * @param sourceIp the IP to unblock * @return true if IP was unblocked, false if not found */ public boolean unblockIp(String sourceIp) { IpAttempts ip = ipAttempts.get(sourceIp); if (ip != null) { ip.reset(); log.info("Manually unblocked IP: {}", sourceIp); return true; }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
assertFalse(rateLimiter.checkAttempt("user6", ip), "IP should be blocked"); // Manually unblock assertTrue(rateLimiter.unblockIp(ip), "Manual unblock should succeed"); // Should be allowed again assertTrue(rateLimiter.checkAttempt("user7", ip), "Should be allowed after manual unblock"); } @Test public void testNullUsername() throws Exception {
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 15.8K bytes - Viewed (0)