Lines Matching refs:Provider
25 import java.security.Provider;
67 * if no installed provider can provide the requested algorithm.
78 return new KeyManagerFactory((KeyManagerFactorySpi) sap.spi, sap.provider, algorithm);
83 * management algorithm from the specified provider.
87 * @param provider
88 * the name of the provider that provides the requested
92 * if the specified provider cannot provide the requested
95 * if the specified provider does not exist.
100 public static final KeyManagerFactory getInstance(String algorithm, String provider)
102 if ((provider == null) || (provider.length() == 0)) {
103 throw new IllegalArgumentException("Provider is null or empty");
105 Provider impProvider = Security.getProvider(provider);
107 throw new NoSuchProviderException(provider);
114 * management algorithm from the specified provider.
118 * @param provider
119 * the provider that provides the requested algorithm.
122 * if the specified provider cannot provide the requested
128 public static final KeyManagerFactory getInstance(String algorithm, Provider provider)
130 if (provider == null) {
131 throw new IllegalArgumentException("Provider is null");
136 Object spi = ENGINE.getInstance(algorithm, provider, null);
137 return new KeyManagerFactory((KeyManagerFactorySpi) spi, provider, algorithm);
140 // Store used provider
141 private final Provider provider;
154 * @param provider
155 * the provider.
159 protected KeyManagerFactory(KeyManagerFactorySpi factorySpi, Provider provider,
161 this.provider = provider;
176 * Returns the provider for this {@code KeyManagerFactory} instance.
178 * @return the provider for this {@code KeyManagerFactory} instance.
180 public final Provider getProvider() {
181 return provider;