- Sort Score
- Num 10 results
- Language All
Results 1 - 2 of 2 for unlockAccount (0.09 seconds)
-
src/main/java/jcifs/util/AuthenticationRateLimiter.java
} /** * Manually unlock an account * * @param username the username to unlock * @return true if account was unlocked, false if not found */ public boolean unlockAccount(String username) { AccountAttempts account = accountAttempts.get(username); if (account != null) { account.reset(); log.info("Manually unlocked account: {}", username);Created: 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
fail("Should be locked out"); } catch (SmbException e) { // Expected } // Manually unlock assertTrue(rateLimiter.unlockAccount(username), "Manual unlock should succeed"); // Should be allowed again assertTrue(rateLimiter.checkAttempt(username, ip), "Should be allowed after manual unlock"); } @Test
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)