Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 54 for lockout (0.08 sec)

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

            private final AtomicBoolean lockedOut = new AtomicBoolean(false);
    
            void recordFailure() {
                failedAttempts.incrementAndGet();
                lastAttempt = Instant.now();
            }
    
            void reset() {
                failedAttempts.set(0);
                lockedOut.set(false);
                lockoutExpiry = null;
            }
    
            void lockOut(Duration duration) {
    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/internal/smb2/lock/Smb2LockRequestTest.java

            @DisplayName("Should calculate size for various lock counts")
            @ValueSource(ints = { 0, 1, 2, 5, 10, 20, 50, 100 })
            void testSizeWithVariousLockCounts(int lockCount) {
                Smb2Lock[] locks = new Smb2Lock[lockCount];
                for (int i = 0; i < lockCount; i++) {
                    locks[i] = new Smb2Lock(i * 100L, 100L, Smb2Lock.SMB2_LOCKFLAG_EXCLUSIVE_LOCK);
                }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 25.3K bytes
    - Viewed (0)
  5. 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)
  6. src/test/java/org/codelibs/fess/sso/SsoAuthenticatorTest.java

            assertNull(result);
        }
    
        // Test logout method
        public void test_logout_withValidUser() {
            // Setup
            FessUserBean user = FessUserBean.empty();
            String expectedUrl = "https://example.com/logout?user=testuser123";
            authenticator.setLogoutUrl(expectedUrl);
    
            // Execute
            String result = authenticator.logout(user);
    
            // Verify
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 11K bytes
    - Viewed (0)
  7. src/test/java/org/codelibs/fess/sso/SsoManagerTest.java

            assertNotNull(response);
            assertEquals(expectedResponse, response);
        }
    
        // Test logout() method
        public void test_logout_whenNotAvailable() {
            currentSsoType = Constants.NONE;
            FessUserBean user = FessUserBean.empty();
            assertNull(ssoManager.logout(user));
        }
    
        public void test_logout_whenAvailableButNoAuthenticator() {
            currentSsoType = "invalid";
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 13.9K bytes
    - Viewed (0)
  8. src/test/java/org/codelibs/fess/sso/SsoResponseTypeTest.java

            assertEquals("LOGOUT", SsoResponseType.LOGOUT.toString());
        }
    
        public void test_equals() {
            // Test equals method for enum constants
            assertTrue(SsoResponseType.METADATA.equals(SsoResponseType.METADATA));
            assertTrue(SsoResponseType.LOGOUT.equals(SsoResponseType.LOGOUT));
            assertFalse(SsoResponseType.METADATA.equals(SsoResponseType.LOGOUT));
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 6K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/fess/app/web/logout/LogoutAction.java

        /**
         * Handles user logout and redirects to the login page.
         *
         * @return the HTML response after logout
         */
        @Execute
        public HtmlResponse index() {
            final OptionalThing<FessUserBean> userBean = getUserBean();
            activityHelper.logout(userBean);
            final String redirectUrl = userBean.map(user -> ComponentUtil.getSsoManager().logout(user)).orElse(null);
            fessLoginAssist.logout();
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 2.8K bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/fess/sso/SsoResponseType.java

     * such as metadata requests and logout actions.
     */
    public enum SsoResponseType {
        /**
         * Indicates a request for SSO metadata, which is typically used for
         * configuration and discovery in protocols like SAML.
         */
        METADATA,
    
        /**
         * Indicates a request to perform a logout operation, terminating the
         * user's SSO session.
         */
        LOGOUT;
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 1.1K bytes
    - Viewed (0)
Back to top