Interface PGPDataDecryptor


  • public interface PGPDataDecryptor
    A decryptor that wraps a stream of PGP encrypted data to decrypt, and optionally integrity check, the data.
    • Method Detail

      • getInputStream

        java.io.InputStream getInputStream​(java.io.InputStream in)
        Wraps an encrypted data stream with a stream that will return the decrypted data.
        Parameters:
        in - the encrypted data.
        Returns:
        a decrypting stream.
      • getBlockSize

        int getBlockSize()
        Obtains the block size of the encryption algorithm used in this decryptor.
        Returns:
        the block size of the cipher in bytes.
      • getIntegrityCalculator

        PGPDigestCalculator getIntegrityCalculator()
        Obtains the digest calculator used to verify the integrity check.