Lines Matching refs:provider

257                         Debug.getInstance("provider", "Provider");
270 // The provider
271 Provider provider;
397 sig.provider = instance.provider;
407 signatureInfo.put("sun.security.provider.DSA$RawDSA", TRUE);
408 signatureInfo.put("sun.security.provider.DSA$SHA1withDSA", TRUE);
438 debug.println("Delayed provider selection may not be "
458 * SignatureSpi implementation from the specified provider
459 * is returned. The specified provider must be registered
460 * in the security provider list.
471 * @param provider the name of the provider.
477 * available from the specified provider.
479 * @exception NoSuchProviderException if the specified provider is not
480 * registered in the security provider list.
482 * @exception IllegalArgumentException if the provider name is null
487 public static Signature getInstance(String algorithm, String provider)
491 if ((provider == null) || (provider.length() == 0)) {
492 throw new IllegalArgumentException("missing provider");
494 Provider p = Security.getProvider(provider);
497 ("no such provider: " + provider);
502 Providers.checkBouncyCastleDeprecation(provider, "Signature", algorithm);
504 ("Signature", SignatureSpi.class, algorithm, provider);
515 * does not have to be registered in the provider list.
523 * @param provider the provider.
531 * @exception IllegalArgumentException if the provider is null.
537 public static Signature getInstance(String algorithm, Provider provider)
541 if (provider == null) {
542 throw new IllegalArgumentException("missing provider");
544 return getInstanceRSA(provider);
547 Providers.checkBouncyCastleDeprecation(provider, "Signature", algorithm);
549 ("Signature", SignatureSpi.class, algorithm, provider);
571 + RSA_SIGNATURE + " for provider " + p.getName(), e);
576 * Returns the provider of this signature object.
578 * @return the provider of this signature object
582 return this.provider;
608 " verification algorithm from: " + this.provider.getName());
661 " verification algorithm from: " + this.provider.getName());
686 " signing algorithm from: " + this.provider.getName());
713 " signing algorithm from: " + this.provider.getName());
1109 * encapsulated, provider-supplied SPI object (of type SignatureSpi).
1110 * If the provider implementation is an instance of SignatureSpi, the
1123 // The provider implementation (delegate)
1124 // filled in once the provider is selected
1133 // lock for mutex during provider selection
1136 // BEGIN Android-removed: Redo the provider selection logic to allow reselecting provider.
1137 // When only the algorithm is specified, we want to allow the Signature provider for that
1140 // a provider like the upstream implementation, we reestablish the list of providers
1143 // next service to try in provider selection
1144 // null once provider is selected
1147 // remaining services to try in provider selection
1148 // null once provider is selected
1151 // END Android-removed: Redo the provider selection logic to allow reselecting provider.
1160 // used with delayed provider selection
1179 // Because 'algorithm' and 'provider' are private
1184 that.provider = ((Signature)this).provider;
1215 * Choose the Spi from the first provider available. Used if
1216 * delayed provider selection is not possible because initSign()/
1233 + "called, disabling delayed provider selection");
1259 provider = s.getProvider();
1283 // Android-changed: Use the currently-selected provider only if no key was provided.
1300 // if provider says it does not support this key, ignore it
1311 provider = s.getProvider();
1332 // no working provider found, fail
1341 ("No installed provider supports this key: "
1369 // Android-changed: Use the currently-selected provider only if no key was provided.
1380 // Android-changed: Use the currently-selected provider only if no key was provided.
1391 // Android-changed: Use the currently-selected provider only if no key was provided.