public class PGPPBEEncryptedData extends PGPEncryptedData
PGPEncryptedData.TruncatedStream
Modifier and Type | Method and Description |
---|---|
java.io.InputStream |
getDataStream(char[] passPhrase,
java.security.Provider provider)
Deprecated.
use PBEDataDecryptorFactory method
|
java.io.InputStream |
getDataStream(char[] passPhrase,
java.lang.String provider)
Deprecated.
use PBEDataDecryptorFactory method
|
java.io.InputStream |
getDataStream(PBEDataDecryptorFactory dataDecryptorFactory)
Open an input stream which will provide the decrypted data protected by this object.
|
java.io.InputStream |
getInputStream()
Return the raw input stream for the data stream.
|
int |
getSymmetricAlgorithm(PBEDataDecryptorFactory dataDecryptorFactory)
Return the symmetric key algorithm required to decrypt the data protected by this object.
|
isIntegrityProtected, verify
public java.io.InputStream getInputStream()
getInputStream
in class PGPEncryptedData
public java.io.InputStream getDataStream(char[] passPhrase, java.lang.String provider) throws PGPException, java.security.NoSuchProviderException
passPhrase
- provider
- PGPException
java.security.NoSuchProviderException
public java.io.InputStream getDataStream(char[] passPhrase, java.security.Provider provider) throws PGPException
passPhrase
- provider
- PGPException
public int getSymmetricAlgorithm(PBEDataDecryptorFactory dataDecryptorFactory) throws PGPException
dataDecryptorFactory
- decryptor factory to use to recover the session data.PGPException
- if the session data cannot be recovered.public java.io.InputStream getDataStream(PBEDataDecryptorFactory dataDecryptorFactory) throws PGPException
dataDecryptorFactory
- decryptor factory to use to recover the session data and provide the stream.PGPException
- if the session data cannot be recovered or the stream cannot be created.