|
Bouncy Castle Cryptography Library 1.47 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.bouncycastle.openpgp.PGPEncryptedData
org.bouncycastle.openpgp.PGPPublicKeyEncryptedData
public class PGPPublicKeyEncryptedData
A public key encrypted data object.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.bouncycastle.openpgp.PGPEncryptedData |
---|
PGPEncryptedData.TruncatedStream |
Field Summary |
---|
Fields inherited from interface org.bouncycastle.bcpg.SymmetricKeyAlgorithmTags |
---|
AES_128, AES_192, AES_256, BLOWFISH, CAST5, DES, IDEA, NULL, SAFER, TRIPLE_DES, TWOFISH |
Method Summary | |
---|---|
java.io.InputStream |
getDataStream(PGPPrivateKey privKey,
java.security.Provider provider)
Deprecated. use method that takes a PublicKeyDataDecryptorFactory |
java.io.InputStream |
getDataStream(PGPPrivateKey privKey,
java.security.Provider asymProvider,
java.security.Provider provider)
Deprecated. use method that takes a PublicKeyDataDecryptorFactory |
java.io.InputStream |
getDataStream(PGPPrivateKey privKey,
java.lang.String provider)
Deprecated. use method that takes a PublicKeyDataDecryptorFactory |
java.io.InputStream |
getDataStream(PGPPrivateKey privKey,
java.lang.String asymProvider,
java.lang.String provider)
Deprecated. use method that takes a PublicKeyDataDecryptorFactory |
java.io.InputStream |
getDataStream(PublicKeyDataDecryptorFactory dataDecryptorFactory)
Open an input stream which will provide the decrypted data protected by this object. |
long |
getKeyID()
Return the keyID for the key used to encrypt the data. |
int |
getSymmetricAlgorithm(PGPPrivateKey privKey,
java.security.Provider provider)
Deprecated. use the method taking a PublicKeyDataDecryptorFactory |
int |
getSymmetricAlgorithm(PGPPrivateKey privKey,
java.lang.String provider)
Deprecated. use the method taking a PublicKeyDataDecryptorFactory |
int |
getSymmetricAlgorithm(PublicKeyDataDecryptorFactory dataDecryptorFactory)
Return the symmetric key algorithm required to decrypt the data protected by this object. |
Methods inherited from class org.bouncycastle.openpgp.PGPEncryptedData |
---|
getInputStream, isIntegrityProtected, verify |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
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 int getSymmetricAlgorithm(PublicKeyDataDecryptorFactory 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(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
privKey
- provider
-
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
public java.io.InputStream getDataStream(PublicKeyDataDecryptorFactory 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.
|
Bouncy Castle Cryptography Library 1.47 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |