mirror of
https://github.com/pgpainless/pgpainless.git
synced 2025-09-09 10:19:39 +02:00
IntegrityProtectedInputStream: remove useless logger
This commit is contained in:
parent
797f421b27
commit
4260ed7969
1 changed files with 0 additions and 8 deletions
|
@ -9,8 +9,6 @@ import java.io.InputStream
|
|||
import org.bouncycastle.openpgp.PGPEncryptedData
|
||||
import org.bouncycastle.openpgp.PGPException
|
||||
import org.pgpainless.exception.ModificationDetectionException
|
||||
import org.slf4j.Logger
|
||||
import org.slf4j.LoggerFactory
|
||||
|
||||
class IntegrityProtectedInputStream(
|
||||
private val inputStream: InputStream,
|
||||
|
@ -30,15 +28,9 @@ class IntegrityProtectedInputStream(
|
|||
if (encryptedData.isIntegrityProtected && !options.isIgnoreMDCErrors()) {
|
||||
try {
|
||||
if (!encryptedData.verify()) throw ModificationDetectionException()
|
||||
LOGGER.debug("Integrity Protection check passed.")
|
||||
} catch (e: PGPException) {
|
||||
throw IOException("Data appears to not be integrity protected.", e)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
companion object {
|
||||
@JvmStatic
|
||||
val LOGGER: Logger = LoggerFactory.getLogger(IntegrityProtectedInputStream::class.java)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue