- Sort Score
- Num 10 results
- Language All
Results 151 - 160 of 1,015 for Prevent (0.05 seconds)
-
okhttp/src/jvmTest/kotlin/okhttp3/internal/cache/DiskLruCacheTest.kt
set("a", "aa", "aa") set("b", "bb", "bbb") // Cause the cache trim job to fail. filesystem.setFaultyDelete(cacheDir / "a.0", true) taskFaker.runNextTask() // Confirm we prevent edits after a trim failure. assertThat(cache.edit("c")).isNull() // A successful eviction should allow new writes. filesystem.setFaultyDelete(cacheDir / "a.0", false) cache.evictAll()
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue Feb 03 22:17:59 GMT 2026 - 59.4K bytes - Click Count (0) -
src/main/java/jcifs/util/AuthenticationRateLimiter.java
import java.util.concurrent.atomic.AtomicLong; import org.slf4j.Logger; 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
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/main/java/org/codelibs/fess/util/IpAddressUtil.java
* This class provides methods to properly format IPv6 addresses for use in URLs * by adding brackets where necessary. */ public final class IpAddressUtil { /** * Private constructor to prevent instantiation of utility class. */ private IpAddressUtil() { // Utility class - no instances allowed } /** * Determines if the given address string represents an IPv6 address.Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Thu Nov 06 08:31:03 GMT 2025 - 9.4K bytes - Click Count (0) -
src/main/java/jcifs/smb/SmbFileHandleImpl.java
log.error("Error during file handle finalization", e); } finally { super.finalize(); } } /** * Emergency cleanup method to prevent resource leaks during finalization */ private void emergencyCloseHandle() { try { synchronized (this) { // Force close the handle this.open = false;
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sun Aug 31 08:00:57 GMT 2025 - 9.4K bytes - Click Count (1) -
src/main/java/jcifs/smb/NtlmPasswordAuthenticator.java
private static final SecurityAuditLogger auditLogger = SecurityAuditLogger.getInstance(); /** * Performs constant-time comparison of two char arrays to prevent timing attacks. * This method always compares the full length of both arrays, regardless of when * differences are found, making the execution time independent of the position * of differing characters. *
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sun Aug 31 08:00:57 GMT 2025 - 30.3K bytes - Click Count (0) -
compat/maven-compat/src/main/mdo/profiles.mdo
<association> <type>RepositoryPolicy</type> </association> </field> </fields> <!-- prevent modello generation of an incorrect equals method. Could be avoided by using <identity/> tags to mark ID as the only identity field --> <codeSegments> <codeSegment> <version>1.0.0</version>
Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Wed Jan 22 11:03:29 GMT 2025 - 13.8K bytes - Click Count (0) -
guava/src/com/google/common/collect/Cut.java
return compareResult == 0; } catch (ClassCastException wastNotComparableToOurType) { return false; } } return false; } // Prevent "missing hashCode" warning by explicitly forcing subclasses implement it @Override public abstract int hashCode(); /* * The implementation neither produces nor consumes any non-null instance of type C, soCreated: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Sep 22 18:35:44 GMT 2025 - 12.4K bytes - Click Count (0) -
src/main/java/jcifs/util/PathValidator.java
import java.util.HashSet; import java.util.Set; import java.util.regex.Pattern; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import jcifs.smb.SmbException; /** * Path validation utility to prevent directory traversal and other path-based attacks. * * Features: * - Directory traversal prevention * - Path normalization * - Blacklist/whitelist support * - UNC path validation * - Special character filtering
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 30 05:58:03 GMT 2025 - 14.5K bytes - Click Count (0) -
src/main/java/org/codelibs/fess/chat/ChatSessionManager.java
final ChatSession session = findSession(sessionId); if (session != null) { final String sessionUserId = session.getUserId(); // Validate userId matches - prevent cross-user session access if (userId != null && !userId.equals(sessionUserId)) { logger.warn("Session userId mismatch. sessionId={}, requestUserId={}", sessionId, userId);
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Sat Mar 07 13:27:59 GMT 2026 - 13.7K bytes - Click Count (0) -
src/main/java/jcifs/util/SecureCredentialStorage.java
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 30 05:58:03 GMT 2025 - 12.7K bytes - Click Count (0)