Lines Matching refs:provider

38  * Collection of methods to get and set provider list. Also includes
39 * special code for the provider list during JAR verification.
49 // number of threads currently using thread-local provider lists
53 // current system-wide provider list
57 // Android-added: Keep reference to system-created Bouncy Castle provider
77 // Android-added: Set BC provider instance
94 // To avoid that, we use different provider settings during JAR
95 // verification. However, we do not want those provider settings to
103 "sun.security.provider.VerificationProvider";
110 "sun.security.provider.Sun",
117 "com.android.org.bouncycastle.jce.provider.BouncyCastleProvider",
123 // Return to Sun provider or its backup.
135 throw new RuntimeException("Sun provider not found", e);
141 * Start JAR verification. This sets a special provider list for
149 // return the old thread-local provider list, usually null
157 // restore old thread-local provider list
186 * Get the full provider list with invalid providers (those that
229 // Change the thread local provider list. Use only if the current thread
237 * Methods to manipulate the thread local provider list. It is for use by
245 * // code that needs thread local provider list
284 // We only care about the system-provided Bouncy Castle provider; applications are allowed to
318 * Checks if the installed provider with the given name is the system-installed Bouncy
319 * Castle provider. If so, throws {@code NoSuchAlgorithmException} if the algorithm
324 public static synchronized void checkBouncyCastleDeprecation(String provider,
326 // Applications may install their own BC provider, only the algorithms from the system
327 // provider are deprecated.
328 if ("BC".equals(provider)
329 && providerList.getProvider(provider) == SYSTEM_BOUNCY_CASTLE_PROVIDER) {
335 * Checks if the given provider is the system-installed Bouncy Castle provider. If so,
341 public static synchronized void checkBouncyCastleDeprecation(Provider provider,
343 // Applications may install their own BC provider, only the algorithms from the system
344 // provider are deprecated.
345 if (provider == SYSTEM_BOUNCY_CASTLE_PROVIDER) {
546 * provider.
557 System.logE(" * the BC provider is deprecated in this version of Android.");
563 throw new NoSuchAlgorithmException("The BC provider no longer provides an"