Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for lockOut (0.13 sec)

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

     *
     * Features:
     * - Per-account rate limiting
     * - Per-IP rate limiting
     * - Global rate limiting
     * - 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);
    
    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

            } catch (SmbException e) {
                // Expected
            }
    
            // Wait for lockout to expire
            Thread.sleep(2100); // Lockout is 2 seconds in test setup
    
            // Should be allowed again
            assertTrue(rateLimiter.checkAttempt(username, ip), "Should be allowed after lockout expiry");
        }
    
        @Test
        public void testSuccessResetsCounter() throws Exception {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 15.8K bytes
    - Viewed (0)
  3. src/main/java/jcifs/smb1/smb1/SmbFile.java

            getFirstAddress();
            for (;;) {
                try {
                    doConnect();
                    return;
                } catch (final SmbAuthException sae) {
                    throw sae; // Prevents account lockout on servers with multiple IPs
                } catch (final SmbException se) {
                    if (getNextAddress() == null) {
                        throw se;
                    }
                    if (LogStream.level >= 3) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 112.2K bytes
    - Viewed (0)
  4. src/test/java/jcifs/smb/SmbPipeHandleInternalTest.java

            // Mock the stream directly
            SmbPipeOutputStream mockOut = mock(SmbPipeOutputStream.class);
    
            // Create spy and override getOutput
            SmbPipeHandleImpl spyHandle = spy(handle);
            doReturn(mockOut).when(spyHandle).getOutput();
    
            byte[] b = new byte[10];
            spyHandle.send(b, 2, 4);
            verify(mockOut).writeDirect(eq(b), eq(2), eq(4), eq(1));
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 16.7K bytes
    - Viewed (0)
Back to top