equal
deleted
inserted
replaced
368 } |
368 } |
369 if (signedCRL == null) { |
369 if (signedCRL == null) { |
370 throw new CRLException("Uninitialized CRL"); |
370 throw new CRLException("Uninitialized CRL"); |
371 } |
371 } |
372 Signature sigVerf = null; |
372 Signature sigVerf = null; |
373 if (sigProvider.length() == 0) { |
373 if (sigProvider.isEmpty()) { |
374 sigVerf = Signature.getInstance(sigAlgId.getName()); |
374 sigVerf = Signature.getInstance(sigAlgId.getName()); |
375 } else { |
375 } else { |
376 sigVerf = Signature.getInstance(sigAlgId.getName(), sigProvider); |
376 sigVerf = Signature.getInstance(sigAlgId.getName(), sigProvider); |
377 } |
377 } |
378 |
378 |
493 NoSuchProviderException, SignatureException { |
493 NoSuchProviderException, SignatureException { |
494 try { |
494 try { |
495 if (readOnly) |
495 if (readOnly) |
496 throw new CRLException("cannot over-write existing CRL"); |
496 throw new CRLException("cannot over-write existing CRL"); |
497 Signature sigEngine = null; |
497 Signature sigEngine = null; |
498 if ((provider == null) || (provider.length() == 0)) |
498 if (provider == null || provider.isEmpty()) |
499 sigEngine = Signature.getInstance(algorithm); |
499 sigEngine = Signature.getInstance(algorithm); |
500 else |
500 else |
501 sigEngine = Signature.getInstance(algorithm, provider); |
501 sigEngine = Signature.getInstance(algorithm, provider); |
502 |
502 |
503 sigEngine.initSign(key); |
503 sigEngine.initSign(key); |