- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 120 for rathe (0.02 sec)
-
src/main/java/jcifs/util/AuthenticationRateLimiter.java
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 * - Automatic cleanup of old entries */
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 15.1K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/util/concurrent/RateLimiterTest.java
* we change the rate. */ public void testWeNeverGetABurstMoreThanOneSec() { RateLimiter limiter = RateLimiter.create(1.0, stopwatch); int[] rates = {1000, 1, 10, 1000000, 10, 1}; for (int rate : rates) { int oneSecWorthOfWork = rate; stopwatch.sleepMillis(rate * 1000); limiter.setRate(rate);
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Mon Aug 11 19:31:30 UTC 2025 - 21.9K bytes - Viewed (0) -
guava-tests/test/com/google/common/util/concurrent/RateLimiterTest.java
* we change the rate. */ public void testWeNeverGetABurstMoreThanOneSec() { RateLimiter limiter = RateLimiter.create(1.0, stopwatch); int[] rates = {1000, 1, 10, 1000000, 10, 1}; for (int rate : rates) { int oneSecWorthOfWork = rate; stopwatch.sleepMillis(rate * 1000); limiter.setRate(rate);
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Mon Aug 11 19:31:30 UTC 2025 - 21.9K bytes - Viewed (0) -
src/main/java/jcifs/util/SmbCircuitBreaker.java
long avgResponseTime = metrics.getAverageResponseTime(); // Adjust threshold based on failure rate and response time trends int currentThreshold = this.failureThreshold; int newThreshold = currentThreshold; // If failure rate is high but response time is normal, be more lenient if (failureRate > 0.5 && avgResponseTime < 5000) {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 33.4K bytes - Viewed (0) -
src/test/java/jcifs/util/AuthenticationRateLimiterTest.java
// Make many attempts to trigger global rate limit for (int i = 1; i <= 20; i++) { assertTrue(rateLimiter.checkAttempt("user" + i, "192.168.1." + i), "Attempt " + i + " should be allowed"); } // 21st attempt should be blocked by global rate limit assertFalse(rateLimiter.checkAttempt("user21", "192.168.1.21"), "Should block after global rate limit"); } @Test
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 15.8K bytes - Viewed (0) -
src/main/java/jcifs/smb1/smb1/SmbFileOutputStream.java
* for a detailed description and examples of the smb URL syntax. If the * second argument is <code>true</code>, then bytes will be written to the * end of the file rather than the beginning. * * @param url An smb URL string representing the file to write to * @param append Append to the end of file * @throws SmbException if an SMB error occurs
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 11K bytes - Viewed (0) -
android/guava/src/com/google/common/hash/Hashing.java
* by RFC 3720, Section 12.1. * * <p>This function is best understood as a <a * href="https://en.wikipedia.org/wiki/Checksum">checksum</a> rather than a true <a * href="https://en.wikipedia.org/wiki/Hash_function">hash function</a>. * * @since 18.0 */ public static HashFunction crc32c() { return Crc32cHashFunction.CRC_32_C; }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Jul 17 15:26:41 UTC 2025 - 29.8K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/multichannel/ChannelInfo.java
} /** * Increment error counter */ public void incrementErrors() { errors.incrementAndGet(); } /** * Get error rate (errors / total requests) * * @return error rate between 0.0 and 1.0 */ public double getErrorRate() { long total = requestsSent.get(); if (total == 0) return 0.0;
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 21 11:13:46 UTC 2025 - 10.6K bytes - Viewed (0) -
android/guava/src/com/google/common/io/ByteSource.java
* * <p>If {@link CharSource#asByteSource} is called on the returned source with the same charset, * the default implementation of this method will ensure that the original {@code ByteSource} is * returned, rather than round-trip encoding. Subclasses that override this method should behave * the same way. */ public CharSource asCharSource(Charset charset) { return new AsCharSource(charset); } /**
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Mar 20 20:55:20 UTC 2025 - 25.7K bytes - Viewed (0) -
guava/src/com/google/common/hash/Hashing.java
* by RFC 3720, Section 12.1. * * <p>This function is best understood as a <a * href="https://en.wikipedia.org/wiki/Checksum">checksum</a> rather than a true <a * href="https://en.wikipedia.org/wiki/Hash_function">hash function</a>. * * @since 18.0 */ public static HashFunction crc32c() { return Crc32CSupplier.HASH_FUNCTION; }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Mon Aug 11 22:06:57 UTC 2025 - 31.1K bytes - Viewed (0)