equal
deleted
inserted
replaced
226 public static AlgorithmParameterGenerator getInstance(String algorithm, |
226 public static AlgorithmParameterGenerator getInstance(String algorithm, |
227 String provider) |
227 String provider) |
228 throws NoSuchAlgorithmException, NoSuchProviderException |
228 throws NoSuchAlgorithmException, NoSuchProviderException |
229 { |
229 { |
230 Objects.requireNonNull(algorithm, "null algorithm name"); |
230 Objects.requireNonNull(algorithm, "null algorithm name"); |
231 if (provider == null || provider.length() == 0) |
231 if (provider == null || provider.isEmpty()) |
232 throw new IllegalArgumentException("missing provider"); |
232 throw new IllegalArgumentException("missing provider"); |
233 Object[] objs = Security.getImpl(algorithm, |
233 Object[] objs = Security.getImpl(algorithm, |
234 "AlgorithmParameterGenerator", |
234 "AlgorithmParameterGenerator", |
235 provider); |
235 provider); |
236 return new AlgorithmParameterGenerator |
236 return new AlgorithmParameterGenerator |