equal
deleted
inserted
replaced
454 Policy.Parameters params, |
454 Policy.Parameters params, |
455 String provider) |
455 String provider) |
456 throws NoSuchProviderException, NoSuchAlgorithmException { |
456 throws NoSuchProviderException, NoSuchAlgorithmException { |
457 |
457 |
458 Objects.requireNonNull(type, "null type name"); |
458 Objects.requireNonNull(type, "null type name"); |
459 if (provider == null || provider.length() == 0) { |
459 if (provider == null || provider.isEmpty()) { |
460 throw new IllegalArgumentException("missing provider"); |
460 throw new IllegalArgumentException("missing provider"); |
461 } |
461 } |
462 |
462 |
463 checkPermission(type); |
463 checkPermission(type); |
464 try { |
464 try { |