Open
Description
I have a use case where I need to check that decrypted data has been signed by any of two given keys. The current API RequireSpecificSignatureValidationStrategy
supports an "AND" verification, but I need an "OR" verification.
I think it would be nice if users had the possibility to provide their own instance of SignatureValidationStrategy
. This way they can use custom strategies without having to submit PRs here and wait for a release.
Maybe a new method named andValidateSignatureMatches(SignatureValidationStrategy)
in name.neuhalfen.projects.crypto.bouncycastle.openpgp.BuildDecryptionInputStreamAPI.Validation
:
BouncyGPG
.decryptAndVerifyStream()
.withConfig(...)
.andValidateSignatureMatches(mySignatureValidationStrategy)
.fromEncryptedInputStream(cipherTextStream);
Metadata
Metadata
Assignees
Labels
No labels