Class PGPPBEEncryptedData

    • Method Detail

      • getSymmetricAlgorithm

        public int getSymmetricAlgorithm​(PBEDataDecryptorFactory dataDecryptorFactory)
                                  throws PGPException
        Return the symmetric key algorithm required to decrypt the data protected by this object.
        Parameters:
        dataDecryptorFactory - decryptor factory to use to recover the session data.
        Returns:
        the identifier of the encryption algorithm used to encrypt this object.
        Throws:
        PGPException - if the session data cannot be recovered.
      • getDataStream

        public java.io.InputStream getDataStream​(PBEDataDecryptorFactory dataDecryptorFactory)
                                          throws PGPException
        Open an input stream which will provide the decrypted data protected by this object.
        Parameters:
        dataDecryptorFactory - decryptor factory to use to recover the session data and provide the stream.
        Returns:
        the resulting decrypted input stream, probably containing a sequence of PGP data objects.
        Throws:
        PGPException - if the session data cannot be recovered or the stream cannot be created.