Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 287 for getInstance (0.57 sec)

  1. src/main/java/org/codelibs/core/security/MessageDigestUtil.java

         *             {@link NoSuchAlgorithmException}が発生した場合
         */
        public static MessageDigest getInstance(final String algorithm) {
            assertArgumentNotEmpty("algorithm", algorithm);
    
            try {
                return MessageDigest.getInstance(algorithm);
            } catch (final NoSuchAlgorithmException e) {
                throw new NoSuchAlgorithmRuntimeException(e);
            }
        }
    
        /**
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 3.1K bytes
    - Viewed (0)
  2. gorm.go

    	}
    
    	if config.Initialized {
    		tx = tx.getInstance()
    	}
    
    	return tx
    }
    
    // WithContext change current instance db's context to ctx
    func (db *DB) WithContext(ctx context.Context) *DB {
    	return db.Session(&Session{Context: ctx})
    }
    
    // Debug start debug mode
    func (db *DB) Debug() (tx *DB) {
    	tx = db.getInstance()
    	return tx.Session(&Session{
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Sun Aug 20 11:46:56 GMT 2023
    - 11.6K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/fess/helper/CurlHelper.java

                    final KeyStore keyStore = KeyStore.getInstance(KeyStore.getDefaultType());
                    keyStore.load(null, null);
                    keyStore.setCertificateEntry("server", certificate);
    
                    final TrustManagerFactory trustManagerFactory = TrustManagerFactory.getInstance(TrustManagerFactory.getDefaultAlgorithm());
    Java
    - Registered: Mon May 06 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 4.8K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/collect/ImmutableClassToInstanceMapTest.java

        in.put(Double.class, Math.PI);
        ClassToInstanceMap<Number> map = ImmutableClassToInstanceMap.copyOf(in);
        assertEquals(2, map.size());
    
        Number zero = map.getInstance(Number.class);
        assertEquals(0, zero);
    
        Double pi = map.getInstance(Double.class);
        assertEquals(Math.PI, pi, 0.0);
    
        assertSame(map, ImmutableClassToInstanceMap.copyOf(map));
      }
    
      public void testCopyOf_map_nulls() {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 20:09:59 GMT 2024
    - 7.4K bytes
    - Viewed (0)
  5. okhttp/src/main/kotlin/okhttp3/internal/platform/Jdk9Platform.kt

        return when {
          majorVersion != null && majorVersion >= 9 ->
            SSLContext.getInstance("TLS")
          else ->
            try {
              // Based on SSLSocket.getApplicationProtocol check we should
              // have TLSv1.3 if we request it.
              // See https://www.oracle.com/java/technologies/javase/8u261-relnotes.html
              SSLContext.getInstance("TLSv1.3")
            } catch (nsae: NoSuchAlgorithmException) {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 3.5K bytes
    - Viewed (0)
  6. src/test/java/org/codelibs/curl/CurlTest.java

                Certificate certificate = CertificateFactory.getInstance("X.509").generateCertificate(in);
    
                KeyStore keyStore = KeyStore.getInstance(KeyStore.getDefaultType());
                keyStore.load(null, null);
                keyStore.setCertificateEntry("server", certificate);
    
                TrustManagerFactory trustManagerFactory = TrustManagerFactory.getInstance(TrustManagerFactory.getDefaultAlgorithm());
    Java
    - Registered: Thu May 09 15:34:10 GMT 2024
    - Last Modified: Mon Nov 14 21:05:19 GMT 2022
    - 2.5K bytes
    - Viewed (1)
  7. okhttp-tls/src/main/kotlin/okhttp3/tls/internal/TlsUtil.kt

        val trustStore = newEmptyKeyStore(keyStoreType)
        for (i in trustedCertificates.indices) {
          trustStore.setCertificateEntry("cert_$i", trustedCertificates[i])
        }
    
        val factory = TrustManagerFactory.getInstance(TrustManagerFactory.getDefaultAlgorithm())
        factory.init(trustStore)
        val result = factory.trustManagers!!
        check(result.size == 1 && result[0] is X509TrustManager) {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 4.1K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/fess/exec/ThumbnailGenerator.java

                        + numOfThreads + "]";
            }
    
        }
    
        static void initializeProbes() {
            // Force probes to be loaded
            ProcessProbe.getInstance();
            OsProbe.getInstance();
            JvmInfo.jvmInfo();
        }
    
        public static void main(final String[] args) {
            final Options options = new Options();
    
    Java
    - Registered: Mon May 06 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 8.2K bytes
    - Viewed (0)
  9. maven-api-impl/src/test/java/org/apache/maven/internal/impl/standalone/ApiRunner.java

                        return injector.getInstance(type);
                    } catch (DIException e) {
                        throw new MavenException("Unable to locate instance of type " + type, e);
                    }
                }
    
                @Override
                public <T> T lookup(Class<T> type, String name) {
                    try {
                        return injector.getInstance(Key.of(type, name));
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Thu Apr 25 14:13:36 GMT 2024
    - 17.1K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/hash/MacHashFunctionTest.java

        } catch (IllegalStateException expected) {
        } finally {
          Providers.setProviderList(providers);
        }
      }
    
      public void testMultipleUpdates() throws Exception {
        Mac mac = Mac.getInstance("HmacSHA1");
        mac.init(SHA1_KEY);
        mac.update("hello".getBytes(UTF_8));
        mac.update("world".getBytes(UTF_8));
    
        assertEquals(
            HashCode.fromBytes(mac.doFinal()),
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 13.8K bytes
    - Viewed (0)
Back to top