Compare commits

..

No commits in common. "df2e4fb61e38b71cf29bae1d9f41ed60ea6c785b" and "f9543cddaed02c10c30dde4ef5db2db40bf8cbc2" have entirely different histories.

9 changed files with 11 additions and 17 deletions

View file

@ -6,11 +6,6 @@ SPDX-License-Identifier: Apache-2.0
# Changelog
## 0.1.2-SNAPSHOT
- Bump `pgpainless-core` to `1.13.2`
- Bump `cert-d-pgpainless` to `0.2.1`
- Bump `cert-d-java` to `0.2.1`
## 0.1.1
- Bump `pgpainless-core` to `1.2.1`
- Bump `cert-d-pgpainless` to `0.1.2`

View file

@ -16,10 +16,10 @@ allprojects {
slf4jVersion = '1.7.36'
logbackVersion = '1.2.11'
mockitoVersion = '4.5.1'
pgpainlessVersion = '1.3.12'
pgpainlessCertDVersion = '0.2.1'
pgpainlessVersion = '1.2.1'
pgpainlessCertDVersion = '0.1.2'
picocliVersion = '4.6.3'
certDJavaVersion = '0.2.1'
certDJavaVersion = '0.1.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.Certificate;
import pgp.certificate_store.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, 0L);
Certificate parsedCert = CertificateFactory.certificateFromPublicKeyRing(certificate);
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.Certificate;
import pgp.certificate_store.Certificate;
import java.util.ArrayList;
import java.util.List;

View file

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

View file

@ -4,7 +4,7 @@
package pgp.wkd.discovery;
import pgp.certificate_store.certificate.Certificate;
import pgp.certificate_store.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.Certificate;
import pgp.certificate_store.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.Certificate;
import pgp.certificate_store.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);
PGPSecretKeyRing secretKeys = PGPainless.generateKeyRing().modernKeyRing(userId, null);
return secretKeys;
}