Home | History | Annotate | Download | only in ssl

Lines Matching refs:provider

25 import java.security.Provider;
30 * The factory for {@code TrustManager}s based on {@code KeyStore} or provider
62 * if no installed provider can provide the requested algorithm.
73 return new TrustManagerFactory((TrustManagerFactorySpi) sap.spi, sap.provider, algorithm);
78 * trust management algorithm from the specified provider.
82 * @param provider
83 * the name of the provider that provides the requested
87 * if the specified provider cannot provide the requested
90 * if the specified provider does not exist.
95 public static final TrustManagerFactory getInstance(String algorithm, String provider)
97 if ((provider == null) || (provider.length() == 0)) {
98 throw new IllegalArgumentException("Provider is null or empty");
100 Provider impProvider = Security.getProvider(provider);
102 throw new NoSuchProviderException(provider);
109 * trust management algorithm from the specified provider.
113 * @param provider
114 * the provider that provides the requested algorithm.
117 * if the specified provider cannot provide the requested
123 public static final TrustManagerFactory getInstance(String algorithm, Provider provider)
125 if (provider == null) {
126 throw new IllegalArgumentException("Provider is null");
131 Object spi = ENGINE.getInstance(algorithm, provider, null);
132 return new TrustManagerFactory((TrustManagerFactorySpi) spi, provider, algorithm);
135 // Store used provider
136 private final Provider provider;
149 * @param provider
150 * the provider
154 protected TrustManagerFactory(TrustManagerFactorySpi factorySpi, Provider provider,
156 this.provider = provider;
173 * Returns the provider for this {@code TrustManagerFactory} instance.
175 * @return the provider for this {@code TrustManagerFactory} instance.
177 public final Provider getProvider() {
178 return provider;
195 * Initializes this factory instance with the specified provider-specific
199 * the provider-specific parameters.