Home | History | Annotate | Download | only in crypto

Lines Matching refs:provider

23 import java.security.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.
87 public final Provider getProvider() {
88 return provider;
99 * if no installed provider can provide the requested algorithm.
111 engine.provider, algorithm);
117 * algorithm from the specified {@code provider}.
121 * @param provider
122 * the name of the provider that provides the requested
125 * specified provider.
127 * if the specified provider cannot provide the requested
130 * if the specified provider does not exist.
132 * if the specified provider name is {@code null} or empty.
135 String provider) throws NoSuchAlgorithmException,
137 if (provider == null || provider.isEmpty()) {
138 throw new IllegalArgumentException("Provider is null or empty");
140 Provider impProvider = Security.getProvider(provider);
142 throw new NoSuchProviderException(provider);
149 * algorithm from the specified provider.
153 * @param provider
154 * the provider that provides the requested algorithm.
156 * specified provider.
158 * if the specified provider cannot provider the requested
161 * if the specified provider is {@code null}.
166 Provider provider) throws NoSuchAlgorithmException {
167 if (provider == null) {
168 throw new IllegalArgumentException("provider == null");
174 engine.getInstance(algorithm, provider, null);
175 return new SecretKeyFactory((SecretKeyFactorySpi) engine.spi, provider,
215 * key from the provider of this key factory.