mirror of
https://github.com/pgpainless/pgpainless.git
synced 2024-12-22 19:08:00 +01:00
Remove code to manually throw NSEE for missing certs
This is now done further down in the store itself
This commit is contained in:
parent
43e0f43bd9
commit
a792952845
1 changed files with 0 additions and 5 deletions
|
@ -258,11 +258,6 @@ public class EncryptionOptions {
|
|||
throws BadDataException, BadNameException, IOException {
|
||||
String fingerprint = certificateFingerprint.toString().toLowerCase();
|
||||
Certificate certificateRecord = certificateStore.getCertificate(fingerprint);
|
||||
// TODO: getCertificate throws NSEE automatically in 0.2.2+
|
||||
// Remove if statement below when bumping
|
||||
if (certificateRecord == null) {
|
||||
throw new NoSuchElementException("Cannot find certificate '" + certificateFingerprint + "'");
|
||||
}
|
||||
PGPPublicKeyRing recipientCertificate = PGPainless.readKeyRing()
|
||||
.publicKeyRing(certificateRecord.getInputStream());
|
||||
return addRecipient(recipientCertificate);
|
||||
|
|
Loading…
Reference in a new issue