- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for checkAttempt (0.35 sec)
-
src/test/java/jcifs/util/AuthenticationRateLimiterTest.java
// First attempts should be allowed assertTrue(rateLimiter.checkAttempt(username, ip)); rateLimiter.recordFailure(username, ip); assertTrue(rateLimiter.checkAttempt(username, ip)); rateLimiter.recordFailure(username, ip); assertTrue(rateLimiter.checkAttempt(username, ip)); rateLimiter.recordFailure(username, ip);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 15.8K bytes - Viewed (0) -
src/main/java/jcifs/util/AuthenticationRateLimiter.java
* @param sourceIp the source IP address * @return true if attempt is allowed, false if rate limited * @throws SmbException if account is locked out */ public boolean checkAttempt(String username, String sourceIp) throws SmbException { if (closed.get()) { throw new IllegalStateException("Rate limiter is closed"); } // Check global rate limit
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 15.1K bytes - Viewed (0)