1
0
Fork 0
mirror of https://github.com/pgpainless/pgpainless.git synced 2024-12-23 03:17:58 +01:00

Update documentation of #96 workaround

This commit is contained in:
Paul Schaub 2022-04-22 20:56:02 +02:00
parent 46f69b9fa5
commit 8172aa1083
Signed by: vanitasvitae
GPG key ID: 62BEE9264BF17311

View file

@ -536,11 +536,9 @@ public final class ArmorUtils {
* to read all PGPKeyRings properly, we apparently have to make sure that the {@link InputStream} that is given
* as constructor argument is a PGPUtil.BufferedInputStreamExt.
* Since {@link PGPUtil#getDecoderStream(InputStream)} will return an {@link org.bouncycastle.bcpg.ArmoredInputStream}
* if the underlying input stream contains armored data, we have to nest two method calls to make sure that the
* if the underlying input stream contains armored data, we first dearmor the data ourselves to make sure that the
* end-result is a PGPUtil.BufferedInputStreamExt.
*
* This is a hacky solution.
*
* @param inputStream input stream
* @return BufferedInputStreamExt
*