Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for AuthenticationRateLimiter (0.97 sec)

  1. src/main/java/jcifs/util/AuthenticationRateLimiter.java

     * - Exponential backoff for repeated failures
     * - Account lockout after threshold
     * - Automatic cleanup of old entries
     */
    public class AuthenticationRateLimiter implements AutoCloseable {
    
        private static final Logger log = LoggerFactory.getLogger(AuthenticationRateLimiter.class);
    
        // Rate limiting configuration
        private final int maxAttemptsPerAccount;
        private final int maxAttemptsPerIp;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 15.1K bytes
    - Viewed (0)
  2. src/test/java/jcifs/util/AuthenticationRateLimiterTest.java

    import jcifs.smb.SmbException;
    
    /**
     * Test cases for AuthenticationRateLimiter
     */
    public class AuthenticationRateLimiterTest {
    
        private AuthenticationRateLimiter rateLimiter;
    
        @BeforeEach
        public void setUp() {
            // Create rate limiter with test-friendly settings
            rateLimiter = new AuthenticationRateLimiter(3, // max attempts per account
                    5, // max attempts per 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)
Back to top