equal
deleted
inserted
replaced
235 |
235 |
236 @Override |
236 @Override |
237 public boolean permits(Set<CryptoPrimitive> primitives, |
237 public boolean permits(Set<CryptoPrimitive> primitives, |
238 String algorithm, AlgorithmParameters parameters) { |
238 String algorithm, AlgorithmParameters parameters) { |
239 |
239 |
240 if (algorithm == null || algorithm.length() == 0) { |
240 if (algorithm == null || algorithm.isEmpty()) { |
241 throw new IllegalArgumentException( |
241 throw new IllegalArgumentException( |
242 "No algorithm name specified"); |
242 "No algorithm name specified"); |
243 } |
243 } |
244 |
244 |
245 if (primitives == null || primitives.isEmpty()) { |
245 if (primitives == null || primitives.isEmpty()) { |
274 |
274 |
275 @Override |
275 @Override |
276 public final boolean permits(Set<CryptoPrimitive> primitives, |
276 public final boolean permits(Set<CryptoPrimitive> primitives, |
277 String algorithm, Key key, AlgorithmParameters parameters) { |
277 String algorithm, Key key, AlgorithmParameters parameters) { |
278 |
278 |
279 if (algorithm == null || algorithm.length() == 0) { |
279 if (algorithm == null || algorithm.isEmpty()) { |
280 throw new IllegalArgumentException( |
280 throw new IllegalArgumentException( |
281 "No algorithm name specified"); |
281 "No algorithm name specified"); |
282 } |
282 } |
283 |
283 |
284 return permits(primitives, algorithm, parameters); |
284 return permits(primitives, algorithm, parameters); |