1
0
Fork 0
mirror of https://github.com/pgpainless/pgpainless.git synced 2024-06-26 13:34:49 +02:00
Commit graph

592 commits

Author SHA1 Message Date
Paul Schaub d004c8e21e
Kotlin conversion: ProviderFactory 2023-10-04 15:06:59 +02:00
Paul Schaub bdb6aeb4f1
Kotlin conversion: ImplementationFactory classes 2023-10-04 14:18:26 +02:00
Paul Schaub c3cf671367
Move now unused utility classes to test directory 2023-10-04 13:16:06 +02:00
Paul Schaub aed27b79e2
Kotlin conversion: MultiMap
Warning: This commit changes the semantics of MultiMap.put()
put() now replaces values, while plus() adds them.
2023-09-28 14:36:04 +02:00
Paul Schaub 78e36537b6
Kotlin conversion: SelectUserId 2023-09-26 17:38:07 +02:00
Paul Schaub 6cad6cc4e0
Kotlin conversion: UserId 2023-09-14 15:50:29 +02:00
Paul Schaub 562aff5f9d
Kotlin conversion: SecretKeyRingEditor 2023-09-13 15:05:58 +02:00
Paul Schaub 35f64e8c39
Add test for OpenPgpFingerprint.getBytes() 2023-09-12 15:03:02 +02:00
Paul Schaub 8193d20900
Add test for SubkeyIdentifier.isPrimaryKey() 2023-09-08 15:03:49 +02:00
Paul Schaub 5efd496e1d
Kotlin conversion: MissingPublicKeyCallback 2023-09-06 14:48:15 +02:00
Paul Schaub 4ef2c8ee1a
Kotlin conversion: MessageMetadata 2023-09-06 14:42:44 +02:00
Paul Schaub 2025f18478
Kotlin conversion: PGPKeyRingCollection 2023-09-04 14:18:45 +02:00
Paul Schaub 903b3f9658
Kotlin conversion: EncryptionOptions 2023-09-04 14:18:44 +02:00
Paul Schaub 17d74cb52c
Kotlin conversion: SecretKeyRingProtector and subclasses 2023-09-04 14:18:42 +02:00
Paul Schaub effff757e1
Remove deprecated OpenPgpMetadata class 2023-09-04 14:18:40 +02:00
Paul Schaub 5ac95025f8
WIP: Kotlin conversion: ConsumerOptions 2023-09-04 14:18:40 +02:00
Paul Schaub a3ab5de2f5
Rename syntax checker enums to screaming snake case 2023-09-04 14:18:38 +02:00
Paul Schaub de3fbe72ad
Remove usage of PublicKeyAlgorithm.EC 2023-09-04 14:18:32 +02:00
Paul Schaub 41dfe71994
Pad long KeyIDs with zeros to 16 chars 2023-09-04 14:18:13 +02:00
Paul Schaub 16a4836f8a
Override evaluation date in test with expiring key 2023-08-03 14:51:43 +02:00
Paul Schaub 975d59c5a9
Add method to allow for encryption for keys with missing keyflags.
There are legacy keys around, which do not carry any key flags.
This commit adds a method to EncryptionOptions that allow PGPainless to encrypt
for such keys.

Fixes #400
2023-08-03 14:04:40 +02:00
Paul Schaub 8cdb7ee4e0
Add more tests for V6 fingerprints 2023-08-01 15:29:24 +02:00
Paul Schaub 30481cd510
Fix unreliable unit test
Fixes #389
2023-07-07 11:07:14 +02:00
Paul Schaub bbdb300814
Add test to verify correct behavior dealing with non-utf8 userID 2023-07-07 10:42:32 +02:00
Paul Schaub f7576abd35
Minimal revocation certificate test: Test merging 2023-06-20 17:37:18 +02:00
Paul Schaub 53d6260210
Implement method to create minimal revocation certificate.
Fixes #386
2023-06-20 17:30:19 +02:00
Paul Schaub 2a7c6af022
Rename SecretKeyRingEditor.createRevocationCertificate() to createRevocation() 2023-06-20 16:41:46 +02:00
Paul Schaub 82cea93e7b
Replace JcaPGPObjectFactory with custom PGPObjectFactory.
Workaround for https://github.com/bcgit/bc-java/issues/1428
2023-06-15 15:20:08 +02:00
Paul Schaub 2b119e8214
Basic V6 parsing test (only check non-crashing) 2023-06-15 14:41:41 +02:00
Paul Schaub 6b145475a8
Add test for anonymous recipients 2023-06-15 14:28:56 +02:00
Paul Schaub 383c9799c3
Add test for minimal revocation certificate 2023-06-13 19:46:56 +02:00
Paul Schaub 814421fe79
Test constructor of RevocationState.softRevoked() requires non-null date 2023-06-12 15:04:57 +02:00
Paul Schaub b9c2e8dfe9
Add test for weak public key behavior 2023-06-12 14:27:07 +02:00
Paul Schaub 1fca51d771
SigningOptions: Add methods to sign with a single, chosen signing subkey 2023-06-08 14:04:06 +02:00
Paul Schaub d3ef513960
Fix checkstyle issues 2023-06-05 21:12:16 +02:00
Paul Schaub 41e663e25b
Allow setting custom version header when encrypting/signing message 2023-06-05 20:18:06 +02:00
Paul Schaub add1b89019
Add test for MultiMap.putAll() 2023-06-05 19:44:58 +02:00
Paul Schaub 324302c536
Add MultiMap.flatten() 2023-06-05 19:44:47 +02:00
Paul Schaub 41d734f2db
ProviderFactory: Provide default implementation of _getProviderName() 2023-06-05 19:30:14 +02:00
Paul Schaub e1038a8bb3
Replace more occurrences of new Date().getTime() with System.currentTimeMillis() 2023-06-02 00:03:55 +02:00
Paul Schaub d25e7419c9
Replace new Date().getTime() with System.getCurrentTimeMillis() 2023-06-02 00:01:34 +02:00
Paul Schaub 528591f906
Key generation: Set default expiration periof of 5 years
Can be changed by calling 'keyRingBuilder.setExpirationDate(null);'
2023-06-01 23:43:41 +02:00
Paul Schaub be5562d273
Fix typo in feature name 2023-05-30 14:51:32 +02:00
Paul Schaub 55058d6070
Rename GNUPG features 2023-05-22 14:37:02 +02:00
Paul Schaub 92a5e559f8
Earlier catching of NPEs in tests 2023-05-03 17:26:21 +02:00
Paul Schaub 495ff6aa5d
Fix javadoc reference 2023-05-03 17:25:19 +02:00
Paul Schaub 005b9d477a
KeyRingReader: Remove unused @throws IOException 2023-05-03 17:23:13 +02:00
Paul Schaub 5c76f9046f
Turn empty catch block into test failure 2023-05-03 17:16:10 +02:00
Paul Schaub 7a194c517a
Remove KeyRingUtils.removeSecretKey() in favor of stripSecretKey() 2023-05-03 17:15:30 +02:00
Paul Schaub 953206b4ed
Make more of the API null-safe by using @Nonnull/@Nullable 2023-05-03 16:03:50 +02:00