Home | History | Annotate | Download | only in crypto

Lines Matching refs:Provider

26 import java.security.Provider;
41 // Store used provider
42 private final Provider provider;
64 * @param provider
65 * the associated provider.
70 Provider provider, String mechanism) {
73 this.provider = provider;
94 * if the specified algorithm is not available by any provider.
104 return new ExemptionMechanism((ExemptionMechanismSpi) sap.spi, sap.provider, algorithm);
109 * specified exemption mechanism algorithm from the specified provider.
113 * @param provider
114 * the name of the provider that is providing the algorithm.
118 * provider.
120 * if the specified provider is not available.
124 * if the provider parameter is {@code null}.
127 String provider) throws NoSuchAlgorithmException,
129 if (provider == null) {
130 throw new IllegalArgumentException("provider == null");
132 Provider impProvider = Security.getProvider(provider);
134 throw new NoSuchProviderException(provider);
144 * specified exemption mechanism algorithm from the specified provider.
145 * The {@code provider} supplied does not have to be registered.
149 * @param provider
150 * the provider that is providing the algorithm.
154 * provider.
158 * if the provider parameter is {@code null}.
161 Provider provider) throws NoSuchAlgorithmException {
165 if (provider == null) {
166 throw new IllegalArgumentException("provider == null");
168 Object spi = ENGINE.getInstance(algorithm, provider, null);
169 return new ExemptionMechanism((ExemptionMechanismSpi) spi, provider, algorithm);
173 * Returns the provider of this {@code ExemptionMechanism} instance.
175 * @return the provider of this {@code ExemptionMechanism} instance.
177 public final Provider getProvider() {
178 return provider;