equal
deleted
inserted
replaced
73 } |
73 } |
74 |
74 |
75 public static Service getService(String type, String algorithm, |
75 public static Service getService(String type, String algorithm, |
76 String provider) throws NoSuchAlgorithmException, |
76 String provider) throws NoSuchAlgorithmException, |
77 NoSuchProviderException { |
77 NoSuchProviderException { |
78 if ((provider == null) || (provider.length() == 0)) { |
78 if (provider == null || provider.isEmpty()) { |
79 throw new IllegalArgumentException("missing provider"); |
79 throw new IllegalArgumentException("missing provider"); |
80 } |
80 } |
81 Provider p = Providers.getProviderList().getProvider(provider); |
81 Provider p = Providers.getProviderList().getProvider(provider); |
82 if (p == null) { |
82 if (p == null) { |
83 throw new NoSuchProviderException("no such provider: " + provider); |
83 throw new NoSuchProviderException("no such provider: " + provider); |