Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 262 for getInstance (0.08 sec)

  1. okhttp/src/main/kotlin/okhttp3/internal/platform/AndroidPlatform.kt

      override fun isCleartextTrafficPermitted(hostname: String): Boolean =
        when {
          Build.VERSION.SDK_INT >= 24 -> NetworkSecurityPolicy.getInstance().isCleartextTrafficPermitted(hostname)
          Build.VERSION.SDK_INT >= 23 -> NetworkSecurityPolicy.getInstance().isCleartextTrafficPermitted
          else -> true
        }
    
      override fun buildCertificateChainCleaner(trustManager: X509TrustManager): CertificateChainCleaner =
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  2. src/main/java/jcifs/pac/kerberos/KerberosEncData.java

            byte[] dataHmac = getHmac(dataChecksum, codeHmac);
            SecretKeySpec dataKey = new SecretKeySpec(dataHmac, KerberosConstants.RC4_ALGORITHM);
    
            cipher = Cipher.getInstance(KerberosConstants.RC4_ALGORITHM);
            cipher.init(Cipher.DECRYPT_MODE, dataKey);
    
            int plainDataLength = data.length - KerberosConstants.CHECKSUM_SIZE;
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Mon Oct 02 12:02:06 UTC 2023
    - 11.4K bytes
    - Viewed (0)
  3. okhttp/src/main/kotlin/okhttp3/internal/platform/Platform.kt

     */
    open class Platform {
      /** Prefix used on custom headers. */
      fun getPrefix() = "OkHttp"
    
      open fun newSSLContext(): SSLContext = SSLContext.getInstance("TLS")
    
      open fun platformTrustManager(): X509TrustManager {
        val factory =
          TrustManagerFactory.getInstance(
            TrustManagerFactory.getDefaultAlgorithm(),
          )
        factory.init(null as KeyStore?)
        val trustManagers = factory.trustManagers!!
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 9.8K bytes
    - Viewed (0)
  4. samples/guide/src/main/java/okhttp3/recipes/CustomCipherSuites.java

       * certificates.
       */
      private SSLSocketFactory defaultSslSocketFactory(X509TrustManager trustManager)
          throws NoSuchAlgorithmException, KeyManagementException {
        SSLContext sslContext = SSLContext.getInstance("TLS");
        sslContext.init(null, new TrustManager[] { trustManager }, null);
    
        return sslContext.getSocketFactory();
      }
    
      /** Returns a trust manager that trusts the VM's default certificate authorities. */
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Thu Mar 14 21:57:42 UTC 2019
    - 6.5K bytes
    - Viewed (0)
  5. guava/src/com/google/common/reflect/MutableTypeToInstanceMap.java

      @Override
      @CheckForNull
      public <T extends @NonNull B> T getInstance(Class<T> type) {
        return trustedGet(TypeToken.of(type));
      }
    
      @Override
      @CheckForNull
      public <T extends @NonNull B> T getInstance(TypeToken<T> type) {
        return trustedGet(type.rejectTypeVariables());
      }
    
      @Override
      @CanIgnoreReturnValue
      @CheckForNull
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Jun 14 17:55:55 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  6. src/test/java/org/codelibs/core/convert/CalendarConversionUtilTest.java

            assertEquals(date, cal.getTime());
        }
    
        /**
         *
         * @throws Exception
         */
        @Test
        public void testLocalize() throws Exception {
            final Calendar calendar = Calendar.getInstance(TimeZone.getTimeZone("JST"));
            final Calendar local = CalendarConversionUtil.localize(calendar);
            assertEquals(TimeZone.getDefault(), local.getTimeZone());
        }
    
        /**
         * Test method for
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/fess/es/log/bsentity/BsUserInfo.java

        //                                                                             =======
        @Override
        public UserInfoDbm asDBMeta() {
            return UserInfoDbm.getInstance();
        }
    
        @Override
        public String asTableDbName() {
            return "user_info";
        }
    
        // ===================================================================================
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/fess/timer/SystemMonitorTarget.java

            buf.append("},");
        }
    
        private void appendProcessStats(final StringBuilder buf) {
            buf.append("\"process\":{");
            final ProcessProbe processProbe = ProcessProbe.getInstance();
            buf.append("\"file_descriptor\":{");
            append(buf, "open", () -> processProbe.getOpenFileDescriptorCount()).append(',');
            append(buf, "max", () -> processProbe.getMaxFileDescriptorCount());
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 7.5K bytes
    - Viewed (0)
  9. src/test/java/org/codelibs/fess/helper/IntervalControlHelperTest.java

            return new IntervalControlHelper() {
                @Override
                protected Calendar getCurrentCal() {
                    final Calendar cal = Calendar.getInstance();
                    cal.setTimeInMillis(date.getTime());
                    cal.set(Calendar.DAY_OF_WEEK, day);
                    return cal;
                }
            };
        }
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  10. okhttp-tls/src/main/kotlin/okhttp3/tls/HeldCertificate.kt

              issuerUniqueID = null,
              subjectUniqueID = null,
              extensions = extensions(),
            )
    
          // Signature.
          val signature =
            Signature.getInstance(tbsCertificate.signatureAlgorithmName).run {
              initSign(issuerKeyPair.private)
              update(CertificateAdapters.tbsCertificate.toDer(tbsCertificate).toByteArray())
              sign().toByteString()
            }
    
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 21.6K bytes
    - Viewed (0)
Back to top