Lines Matching refs:provider

36  * <li>translate {@link SecretKey} objects from one provider implementation to
40 * {@link #getKeySpec} is provider dependent.
47 // Store used provider
48 private final Provider provider;
61 * @param provider
62 * the provider providing this key factory.
67 Provider provider, String algorithm) {
68 this.provider = provider;
83 * Returns the provider for this {@code SecretKeyFactory} instance.
85 * @return the provider for this {@code SecretKeyFactory} instance.
88 return provider;
99 * if no installed provider can provide the requested algorithm.
109 return new SecretKeyFactory((SecretKeyFactorySpi) sap.spi, sap.provider, algorithm);
114 * algorithm from the specified {@code provider}.
118 * @param provider
119 * the name of the provider that provides the requested
122 * specified provider.
124 * if the specified provider cannot provide the requested
127 * if the specified provider does not exist.
129 * if the specified provider name is {@code null} or empty.
132 String provider) throws NoSuchAlgorithmException,
134 if (provider == null || provider.isEmpty()) {
137 Provider impProvider = Security.getProvider(provider);
139 throw new NoSuchProviderException(provider);
146 * algorithm from the specified provider.
150 * @param provider
151 * the provider that provides the requested algorithm.
153 * specified provider.
155 * if the specified provider cannot provider the requested
158 * if the specified provider is {@code null}.
163 Provider provider) throws NoSuchAlgorithmException {
164 if (provider == null) {
165 throw new IllegalArgumentException("provider == null");
170 Object spi = ENGINE.getInstance(algorithm, provider, null);
171 return new SecretKeyFactory((SecretKeyFactorySpi) spi, provider, algorithm);
209 * key from the provider of this key factory.