Search Options

Results per page
Sort
Preferred Languages
Advance

Results 101 - 110 of 750 for Prevent (0.05 sec)

  1. src/main/java/jcifs/internal/smb2/Smb2SigningDigest.java

                final byte[] cmp = new byte[SIGNATURE_LENGTH];
                System.arraycopy(mac.doFinal(), 0, cmp, 0, SIGNATURE_LENGTH);
    
                // Use constant-time comparison to prevent timing attacks
                if (!MessageDigest.isEqual(sig, cmp)) {
                    return false; // Signature verification failed
                }
                return true; // Signature verification succeeded
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 9.9K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/primitives/Longs.java

        }
    
        @Override
        public boolean contains(@Nullable Object target) {
          // Overridden to prevent a ton of boxing
          return (target instanceof Long) && Longs.indexOf(array, (Long) target, start, end) != -1;
        }
    
        @Override
        public int indexOf(@Nullable Object target) {
          // Overridden to prevent a ton of boxing
          if (target instanceof Long) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Jul 17 15:26:41 UTC 2025
    - 29.1K bytes
    - Viewed (0)
  3. src/main/java/jcifs/internal/smb2/lease/DirectoryChangeNotifier.java

        /**
         * Determine optimal polling interval based on directory activity and failure count
         *
         * Current strategy is based on failure count. In the future, this could be enhanced to consider:
         * - Recent event frequency (successful notifications)
         * - Time since last successful notification
         * - Events per unit time for more adaptive behavior
         *
         * @param handle notification handle
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 13.7K bytes
    - Viewed (0)
  4. 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
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 15.1K bytes
    - Viewed (0)
  5. 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>
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Wed Jan 22 11:03:29 UTC 2025
    - 13.8K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/fess/util/DocumentUtil.java

     * URL encoding, and other document-related operations. It's designed as a final
     * utility class with only static methods.
     *
     */
    public final class DocumentUtil {
    
        /**
         * Private constructor to prevent instantiation of this utility class.
         */
        private DocumentUtil() {
            // Utility class - no instantiation
        }
    
        /**
         * Gets a typed value from a document map with a default value.
         *
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 7.2K bytes
    - Viewed (0)
  7. src/main/java/jcifs/internal/smb2/nego/Smb2NegotiateResponse.java

            this.dialectRevision = SMBUtil.readInt2(buffer, bufferIndex);
            final int negotiateContextCount = SMBUtil.readInt2(buffer, bufferIndex + 2);
    
            // Validate negotiate context count - prevent excessive memory allocation
            if (negotiateContextCount < 0 || negotiateContextCount > 100) {
                throw new SMBProtocolDecodingException("Invalid negotiate context count: " + negotiateContextCount + " (must be 0-100)");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 24K bytes
    - Viewed (0)
  8. guava/src/com/google/common/util/concurrent/AbstractScheduledService.java

                        ignored);
              }
              notifyFailed(t);
              // requireNonNull is safe now, just as it was above.
              requireNonNull(runningTask).cancel(false); // prevent future invocations.
            } finally {
              lock.unlock();
            }
          }
        }
    
        private final Runnable task = new Task();
    
        @Override
        protected final void doStart() {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 27.8K bytes
    - Viewed (0)
  9. 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
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 14.5K bytes
    - Viewed (0)
  10. okhttp/src/jvmTest/kotlin/okhttp3/FormBodyTest.kt

        assertThat(formEncode(255)).isEqualTo("%C3%BF")
      }
    
      @Throws(IOException::class)
      private fun formEncode(codePoint: Int): String {
        // Wrap the codepoint with regular printable characters to prevent trimming.
        val body =
          FormBody
            .Builder()
            .add("a", String(intArrayOf('b'.code, codePoint, 'c'.code), 0, 3))
            .build()
        val buffer = Buffer()
        body.writeTo(buffer)
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 7.9K bytes
    - Viewed (0)
Back to top