Interface PGPDataDecryptor


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

    • getInputStream

      InputStream getInputStream(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.