Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 21 - 30 of 273 for repair (0.08 seconds)

  1. src/main/java/org/codelibs/core/misc/Pair.java

        /**
         * Creates and returns a pair of two values.
         *
         * @param <T1>
         *            The type of the first value
         * @param <T2>
         *            The type of the second value
         * @param first
         *            The first value
         * @param second
         *            The second value
         * @return A pair of two values
         */
        public static <T1, T2> Pair<T1, T2> pair(final T1 first, final T2 second) {
    Created: Fri Apr 03 20:58:12 GMT 2026
    - Last Modified: Sat May 10 01:32:17 GMT 2025
    - 3.5K bytes
    - Click Count (0)
  2. okhttp/src/jvmTest/kotlin/okhttp3/KotlinDeprecationErrorTest.kt

      @Test @Disabled
      fun heldCertificate() {
        val heldCertificate: HeldCertificate = HeldCertificate.Builder().build()
        val certificate: X509Certificate = heldCertificate.certificate()
        val keyPair: KeyPair = heldCertificate.keyPair()
      }
    
      @Test @Disabled
      fun mediaType() {
        val mediaType: MediaType = MediaType.get("")
        val type: String = mediaType.type()
        val subtype: String = mediaType.subtype()
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Fri Dec 27 13:39:56 GMT 2024
    - 13.3K bytes
    - Click Count (0)
  3. src/test/java/jcifs/ntlmssp/av/AvPairTest.java

            // Test with a valid type and raw data
            int type = AvPair.MsvAvTimestamp;
            byte[] raw = new byte[] { 0x01, 0x02, 0x03, 0x04 };
            AvPair avPair = new AvPair(type, raw);
    
            assertEquals(type, avPair.getType(), "Type should match the constructor argument.");
            assertArrayEquals(raw, avPair.getRaw(), "Raw data should match the constructor argument.");
    
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 3K bytes
    - Click Count (0)
  4. src/main/java/jcifs/ntlmssp/av/AvPairs.java

            return enc;
        }
    
        private static AvPair parseAvPair(final int avId, final byte[] raw) {
            return switch (avId) {
            case AvPair.MsvAvFlags -> new AvFlags(raw);
            case AvPair.MsvAvTimestamp -> new AvTimestamp(raw);
            case AvPair.MsvAvTargetName -> new AvTargetName(raw);
            case AvPair.MsvAvSingleHost -> new AvSingleHost(raw);
            case AvPair.MsvAvChannelBindings -> new AvChannelBindings(raw);
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 5.3K bytes
    - Click Count (0)
  5. src/test/java/jcifs/ntlmssp/av/AvTargetNameTest.java

         * Verifies that the AvPair type is correctly set and raw bytes are stored.
         */
        @Test
        void testConstructorWithRawBytes() {
            byte[] rawBytes = "TEST_TARGET_NAME".getBytes(StandardCharsets.UTF_16LE);
            AvTargetName avTargetName = new AvTargetName(rawBytes);
    
            // Verify the AvPair type is MsvAvTargetName
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 4.1K bytes
    - Click Count (0)
  6. src/test/java/jcifs/ntlmssp/av/AvPairsTest.java

            assertEquals(1, pairs.size(), "Should have decoded one pair");
    
            AvPair pair = pairs.get(0);
            assertEquals(AvPair.MsvAvFlags, pair.getType(), "Pair type should be MsvAvFlags");
            assertTrue(pair instanceof AvFlags, "Should be decoded as AvFlags");
            assertEquals(0x12345678, ((AvFlags) pair).getFlags(), "Flags value should match");
        }
    
        /**
         * Test decode with multiple AvPairs
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 20.5K bytes
    - Click Count (0)
  7. okhttp-tls/src/main/kotlin/okhttp3/tls/HeldCertificate.kt

        /**
         * Sets the public/private key pair used for this certificate. If unset a key pair will be
         * generated.
         */
        fun keyPair(keyPair: KeyPair) =
          apply {
            this.keyPair = keyPair
          }
    
        /**
         * Sets the public/private key pair used for this certificate. If unset a key pair will be
         * generated.
         */
        fun keyPair(
          publicKey: PublicKey,
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Jan 27 09:00:39 GMT 2026
    - 21.6K bytes
    - Click Count (0)
  8. okhttp-tls/api/okhttp-tls.api

    	public final fun -deprecated_keyPair ()Ljava/security/KeyPair;
    	public fun <init> (Ljava/security/KeyPair;Ljava/security/cert/X509Certificate;)V
    	public final fun certificate ()Ljava/security/cert/X509Certificate;
    	public final fun certificatePem ()Ljava/lang/String;
    	public static final fun decode (Ljava/lang/String;)Lokhttp3/tls/HeldCertificate;
    	public final fun keyPair ()Ljava/security/KeyPair;
    	public final fun privateKeyPkcs1Pem ()Ljava/lang/String;
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Sat Feb 26 19:17:33 GMT 2022
    - 3.7K bytes
    - Click Count (0)
  9. android/guava/src/com/google/common/net/UrlEscapers.java

       * <ul>
       *   <li>The alphanumeric characters "a" through "z", "A" through "Z" and "0" through "9" remain
       *       the same.
       *   <li>The unreserved characters ".", "-", "~", and "_" remain the same.
       *   <li>The general delimiters "@" and ":" remain the same.
       *   <li>The subdelimiters "!", "$", "&amp;", "'", "(", ")", "*", "+", ",", ";", and "=" remain
       *       the same.
       *   <li>The space character " " is converted into %20.
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sat Dec 21 03:10:51 GMT 2024
    - 7.1K bytes
    - Click Count (0)
  10. okhttp/src/jvmTest/kotlin/okhttp3/CertificatePinnerTest.kt

          builder.add("example.com", "sha1/DmxUShsZuNiqPQsX2Oi9uv2sCnw*")
        }
      }
    
      /** Multiple certificates generated from the same keypair have the same pin.  */
      @Test
      fun sameKeypairSamePin() {
        val heldCertificateA2 =
          HeldCertificate
            .Builder()
            .keyPair(certA1.keyPair)
            .serialNumber(101L)
            .build()
        val keypairACertificate2Pin = pin(heldCertificateA2.certificate)
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Wed Mar 19 19:25:20 GMT 2025
    - 10.1K bytes
    - Click Count (0)
Back to Top