- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 29 for visiting (0.03 sec)
-
src/main/java/jcifs/util/AuthenticationRateLimiter.java
import org.slf4j.LoggerFactory; import jcifs.smb.SmbException; /** * Rate limiter for authentication attempts to prevent brute force attacks. * * 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 {Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 15.1K bytes - Viewed (0) -
docs/smb3-features/04-directory-leasing-design.md
} // Check if we can use cached directory listing if (directoryLeaseManager != null && directoryLeaseManager.canCacheDirectoryListing(getPath())) { List<SmbFile> cachedFiles = directoryLeaseManager.getCachedDirectoryListing(getPath()); if (cachedFiles != null) { log.debug("Using cached directory listing for: {}", getPath());Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 02:53:50 UTC 2025 - 36.2K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/lease/DirectoryLeaseManager.java
directoryCache.remove(directoryPath); return null; } } return entry; } /** * Check if directory listing can be cached * * @param directoryPath directory path * @return true if caching is allowed */ public boolean canCacheDirectoryListing(String directoryPath) {
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 23 01:47:47 UTC 2025 - 12.3K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/lease/DirectoryLeasingIntegrationTest.java
assertFalse(cacheEntry.isComplete()); // Step 3: Verify can cache directory listing assertTrue(directoryLeaseManager.canCacheDirectoryListing(directoryPath)); // Step 4: Initially no cached listing assertNull(directoryLeaseManager.getCachedDirectoryListing(directoryPath)); // Step 5: Simulate directory enumeration and update cache
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 23 01:47:47 UTC 2025 - 14.2K bytes - Viewed (0) -
src/main/java/jcifs/audit/SecurityAuditLogger.java
} /** * Configure rate limiting * * @param windowMs time window in milliseconds * @param maxEvents maximum events per window */ public void setRateLimit(long windowMs, int maxEvents) { this.rateLimitWindow = windowMs; this.maxEventsPerWindow = maxEvents; log.info("Rate limiting set to {} events per {} ms", maxEvents, windowMs); }Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 26.6K bytes - Viewed (0) -
src/test/java/jcifs/util/AuthenticationRateLimiterTest.java
// Null username should be handled gracefully assertTrue(rateLimiter.checkAttempt(null, "192.168.1.8"), "Null username should be allowed"); // Should not affect IP limiting rateLimiter.recordFailure(null, "192.168.1.8"); assertTrue(rateLimiter.checkAttempt("realuser", "192.168.1.8"), "Should still track IP"); } @TestRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 15.8K bytes - Viewed (0) -
src/test/java/jcifs/smb/DirFileEntryEnumIterator2Test.java
it.close(); verify(tree).send(argThat((Request<?> r) -> r instanceof Smb2CloseRequest)); } @Test @DisplayName("open() gracefully handles NT_STATUS_NO_SUCH_FILE (empty listing)") void open_handles_no_such_file_and_yields_empty() throws Exception { // Setup required for this test when(parent.getLocator()).thenReturn(locator);
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 13.7K bytes - Viewed (0) -
src/test/java/jcifs/http/NetworkExplorerTest.java
verify(response).setHeader("WWW-Authenticate", "NTLM"); verify(response).flushBuffer(); } /** * Test doGet with NTLM authentication for directory listing * This test verifies the authentication flow without actual network operations */ @Test void testDoGet_DirectoryListing() throws Exception {
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 21 04:51:33 UTC 2025 - 21.2K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/lease/DirectoryLeaseManagerTest.java
directoryLeaseManager.requestDirectoryLease(directoryPath, DirectoryLeaseState.DIRECTORY_READ_HANDLE, DirectoryCacheScope.IMMEDIATE_CHILDREN); // No cached listing initially assertNull(directoryLeaseManager.getCachedDirectoryListing(directoryPath)); // Setup mock files when(mockFile1.getName()).thenReturn("file1.txt");
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 23 01:47:47 UTC 2025 - 15.9K bytes - Viewed (0) -
fess-crawler/src/main/java/org/codelibs/fess/crawler/util/TextUtil.java
* <li>Appending alphanumeric characters (0-9, A-Z, a-z) to the buffer.</li> * <li>Appending symbol characters (!-/, :-@, [-`, {-~) to the buffer.</li> * <li>Optionally removing duplicate terms based on a flag.</li> * <li>Limiting the maximum size of alphanumeric and symbol terms.</li> * </ul> * * <p>The {@link TextNormalizeContext} class provides a fluent API to configure the text
Registered: Sat Dec 20 11:21:39 UTC 2025 - Last Modified: Sat Nov 22 13:28:22 UTC 2025 - 12K bytes - Viewed (0)