Skip to content

v2.1.1 Bugfix

Compare
Choose a tag to compare
@neuhalje neuhalje released this 09 Dec 21:32
· 172 commits to master since this release
release/v2.1.1

Add support to search for the whole UID instead of e-mail only.

To enable this new feature call "selectUidByAnyUidPart()":

   final InputStream plainIS = BouncyGPG.decryptAndVerifyStream()
        .withConfig(Configs.keyringConfigFromFilesForRecipient())
        .selectUidByAnyUidPart()  // << here
        .andRequireSignatureFromAllKeys("Sven Sender")
        ...

API CHANGE: Rfc4880KeySelectionStrategy no longer enforces to search for e-mail only. If you did not use Rfc4880KeySelectionStrategy directly this will not affect you unless you enable it by selectUidByAnyUidPart(). ByEMailKeySelectionStrategy provides
the old Rfc4880KeySelectionStrategy behaviour.