mirror of
https://codeberg.org/PGPainless/wkd-java.git
synced 2024-11-21 06:42:06 +01:00
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:
parent
f9543cddae
commit
e9f2efd15a
8 changed files with 12 additions and 11 deletions
|
@ -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'
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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));
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -4,7 +4,8 @@
|
|||
|
||||
package pgp.wkd;
|
||||
|
||||
import pgp.certificate_store.Certificate;
|
||||
|
||||
import pgp.certificate_store.certificate.Certificate;
|
||||
|
||||
/**
|
||||
* A rejected OpenPGP certificate.
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue