Bump pgpainless-core to 1.3.12, pgpainless-cert-d to 0.2.1, cert-d-java to 0.2.1

This commit is contained in:
Paul Schaub 2022-11-25 16:17:24 +01:00
parent f9543cddae
commit e9f2efd15a
Signed by: vanitasvitae
GPG key ID: 62BEE9264BF17311
8 changed files with 12 additions and 11 deletions

View file

@ -16,10 +16,10 @@ allprojects {
slf4jVersion = '1.7.36'
logbackVersion = '1.2.11'
mockitoVersion = '4.5.1'
pgpainlessVersion = '1.2.1'
pgpainlessCertDVersion = '0.1.2'
pgpainlessVersion = '1.3.12'
pgpainlessCertDVersion = '0.2.1'
picocliVersion = '4.6.3'
certDJavaVersion = '0.1.1'
certDJavaVersion = '0.2.1'
zbase32Version = '1.0.0'
}
}

View file

@ -10,7 +10,7 @@ import org.bouncycastle.openpgp.PGPPublicKeyRingCollection;
import org.pgpainless.PGPainless;
import org.pgpainless.certificate_store.CertificateFactory;
import org.pgpainless.key.info.KeyRingInfo;
import pgp.certificate_store.Certificate;
import pgp.certificate_store.certificate.Certificate;
import pgp.wkd.CertificateAndUserIds;
import pgp.wkd.discovery.CertificateParser;
@ -27,7 +27,7 @@ public class PGPainlessCertificateParser implements CertificateParser {
PGPPublicKeyRingCollection certificates = PGPainless.readKeyRing().publicKeyRingCollection(inputStream);
for (PGPPublicKeyRing certificate : certificates) {
KeyRingInfo info = PGPainless.inspectKeyRing(certificate);
Certificate parsedCert = CertificateFactory.certificateFromPublicKeyRing(certificate);
Certificate parsedCert = CertificateFactory.certificateFromPublicKeyRing(certificate, 0L);
List<String> userIds = info.getValidAndExpiredUserIds();
certificatesAndUserIds.add(new CertificateAndUserIds(parsedCert, userIds));
}

View file

@ -4,7 +4,7 @@
package pgp.wkd;
import pgp.certificate_store.Certificate;
import pgp.certificate_store.certificate.Certificate;
import java.util.ArrayList;
import java.util.List;

View file

@ -4,7 +4,8 @@
package pgp.wkd;
import pgp.certificate_store.Certificate;
import pgp.certificate_store.certificate.Certificate;
/**
* A rejected OpenPGP certificate.

View file

@ -4,7 +4,7 @@
package pgp.wkd.discovery;
import pgp.certificate_store.Certificate;
import pgp.certificate_store.certificate.Certificate;
import pgp.wkd.RejectedCertificate;
import pgp.wkd.WKDAddress;
import pgp.wkd.exception.MissingPolicyFileException;

View file

@ -4,7 +4,7 @@
package pgp.wkd.discovery;
import pgp.certificate_store.Certificate;
import pgp.certificate_store.certificate.Certificate;
import pgp.wkd.exception.CertNotFetchableException;
import javax.annotation.Nonnull;

View file

@ -4,7 +4,7 @@
package pgp.wkd.discovery;
import pgp.certificate_store.Certificate;
import pgp.certificate_store.certificate.Certificate;
import pgp.wkd.CertificateAndUserIds;
import pgp.wkd.exception.MissingPolicyFileException;
import pgp.wkd.exception.RejectedCertificateException;

View file

@ -38,7 +38,7 @@ public class AbstractTestSuiteGenerator {
}
protected PGPSecretKeyRing secretKey(String userId) throws PGPException, InvalidAlgorithmParameterException, NoSuchAlgorithmException {
PGPSecretKeyRing secretKeys = PGPainless.generateKeyRing().modernKeyRing(userId, null);
PGPSecretKeyRing secretKeys = PGPainless.generateKeyRing().modernKeyRing(userId);
return secretKeys;
}