/** * Return the decrypted input stream, using the passed in passPhrase. * * @param passPhrase * @param provider * @return InputStream * @throws PGPException * @deprecated use PBEDataDecryptorFactory method */ public InputStream getDataStream( char[] passPhrase, Provider provider) throws PGPException { return getDataStream(new JcePBEDataDecryptorFactoryBuilder(new JcaPGPDigestCalculatorProviderBuilder().setProvider(provider).build()).setProvider(provider).build(passPhrase)); }