- Sort Score
- Num 10 results
- Language All
Results 1 - 2 of 2 for checkAttempt (0.05 seconds)
The search processing time has exceeded the limit. The displayed results may be partial.
-
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 limitCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 30 05:58:03 GMT 2025 - 15.1K bytes - Click Count (0) -
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);Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 30 05:58:03 GMT 2025 - 15.8K bytes - Click Count (0)