@Test (expected = IllegalArgumentException.class) public void givenADexPathPointingToARemoteResourceButThePackageNameToCertificateMapIsEmpty_whenCreateDexClassLoader_thenThrows() throws Exception { ImmutableMap<String, URL> emptyPackageNameToCertificateMap = ImmutableMap.of(); testSecureLoaderFactory.createDexClassLoader( TEST_REMOTE_CONTAINER_URL_AS_STRING, null, mockClassLoader, emptyPackageNameToCertificateMap); }
public SecureDexClassLoader createDexClassLoader( @NonNull String dexPath, @Nullable String libraryPath, @NonNull ClassLoader parent, @NonNull Map<String, URL> packageNameToCertificateMap) { return createDexClassLoader(dexPath, libraryPath, parent, packageNameToCertificateMap, false); }
SecureLoaderFactory { public SecureDexClassLoader createDexClassLoader( @NonNull String dexPath, @Nullable String libraryPath, @NonNull ClassLoader parent, @NonNull Map<String, URL> packageNameToCertificateMap) { return createDexClassLoader(dexPath, libraryPath, parent, packageNameToCertificateMap, false); } }
SecureLoaderFactory { public SecureDexClassLoader createDexClassLoader( @NonNull String dexPath, @Nullable String libraryPath, @NonNull ClassLoader parent, @NonNull Map<String, URL> packageNameToCertificateMap) { return createDexClassLoader(dexPath, libraryPath, parent, packageNameToCertificateMap, false); } SecureLoaderFactory(Context parentContext);  SecureLoaderFactory(Context parentContext, int daysBeforeContainerCacheExpiration); }
SecureLoaderFactory { public SecureDexClassLoader createDexClassLoader( @NonNull String dexPath, @Nullable String libraryPath, @NonNull ClassLoader parent, @NonNull Map<String, URL> packageNameToCertificateMap) { return createDexClassLoader(dexPath, libraryPath, parent, packageNameToCertificateMap, false); } SecureLoaderFactory(Context parentContext);  SecureLoaderFactory(Context parentContext, int daysBeforeContainerCacheExpiration); SecureDexClassLoader createDexClassLoader(
            @NonNull String dexPath,
			@Nullable String libraryPath,
            @NonNull ClassLoader parent,
            @NonNull Map<String, URL> packageNameToCertificateMap); SecureDexClassLoader createDexClassLoader(
            @NonNull String dexPath,
            @Nullable String libraryPath,
            @NonNull ClassLoader parent,
            @NonNull Map<String, URL> packageNameToCertificateMap,
			boolean performLazyEvaluation); }
SecureLoaderFactory { public SecureDexClassLoader createDexClassLoader( @NonNull String dexPath, @Nullable String libraryPath, @NonNull ClassLoader parent, @NonNull Map<String, URL> packageNameToCertificateMap) { return createDexClassLoader(dexPath, libraryPath, parent, packageNameToCertificateMap, false); } SecureLoaderFactory(Context parentContext);  SecureLoaderFactory(Context parentContext, int daysBeforeContainerCacheExpiration); SecureDexClassLoader createDexClassLoader(
            @NonNull String dexPath,
			@Nullable String libraryPath,
            @NonNull ClassLoader parent,
            @NonNull Map<String, URL> packageNameToCertificateMap); SecureDexClassLoader createDexClassLoader(
            @NonNull String dexPath,
            @Nullable String libraryPath,
            @NonNull ClassLoader parent,
            @NonNull Map<String, URL> packageNameToCertificateMap,
			boolean performLazyEvaluation); static final int DEFAULT_DAYS_BEFORE_CONTAINER_EXPIRATION; }