public class PGPPublicKeyEncryptedData extends PGPEncryptedData
PGPEncryptedData.TruncatedStream
Modifier and Type | Method and Description |
---|---|
java.io.InputStream |
getDataStream(PGPPrivateKey privKey,
java.security.Provider provider) |
java.io.InputStream |
getDataStream(PGPPrivateKey privKey,
java.security.Provider asymProvider,
java.security.Provider provider) |
java.io.InputStream |
getDataStream(PGPPrivateKey privKey,
java.lang.String provider)
Return the decrypted data stream for the packet.
|
java.io.InputStream |
getDataStream(PGPPrivateKey privKey,
java.lang.String asymProvider,
java.lang.String provider)
Return the decrypted data stream for the packet.
|
long |
getKeyID()
Return the keyID for the key used to encrypt the data.
|
int |
getSymmetricAlgorithm(PGPPrivateKey privKey,
java.security.Provider provider) |
int |
getSymmetricAlgorithm(PGPPrivateKey privKey,
java.lang.String provider)
Return the algorithm code for the symmetric algorithm used to encrypt the data.
|
getInputStream, isIntegrityProtected, verify
public long getKeyID()
public int getSymmetricAlgorithm(PGPPrivateKey privKey, java.lang.String provider) throws PGPException, java.security.NoSuchProviderException
PGPException
java.security.NoSuchProviderException
public int getSymmetricAlgorithm(PGPPrivateKey privKey, java.security.Provider provider) throws PGPException, java.security.NoSuchProviderException
PGPException
java.security.NoSuchProviderException
public java.io.InputStream getDataStream(PGPPrivateKey privKey, java.lang.String provider) throws PGPException, java.security.NoSuchProviderException
privKey
- private key to useprovider
- provider to use for private key and symmetric key decryption.PGPException
java.security.NoSuchProviderException
public java.io.InputStream getDataStream(PGPPrivateKey privKey, java.security.Provider provider) throws PGPException
PGPException
public java.io.InputStream getDataStream(PGPPrivateKey privKey, java.lang.String asymProvider, java.lang.String provider) throws PGPException, java.security.NoSuchProviderException
privKey
- private key to use.asymProvider
- asymetric provider to use with private key.provider
- provider to use for symmetric algorithm.PGPException
java.security.NoSuchProviderException
public java.io.InputStream getDataStream(PGPPrivateKey privKey, java.security.Provider asymProvider, java.security.Provider provider) throws PGPException
PGPException