Bouncy Castle Cryptography 1.20

org.bouncycastle.openpgp
Class PGPPublicKeyEncryptedData

java.lang.Object
  |
  +--org.bouncycastle.openpgp.PGPPublicKeyEncryptedData

public class PGPPublicKeyEncryptedData
extends java.lang.Object
implements PacketTags, PublicKeyAlgorithmTags, SymmetricKeyAlgorithmTags, HashAlgorithmTags

A public key encrypted data object.


Fields inherited from interface org.bouncycastle.bcpg.PacketTags
COMPRESSED_DATA, EXPIRIMENTAL_1, EXPIRIMENTAL_2, EXPIRIMENTAL_3, EXPIRIMENTAL_4, LITERAL_DATA, MARKER, MOD_DETECTION_CODE, ONE_PASS_SIGNATURE, PUBLIC_KEY, PUBLIC_KEY_ENC_SESSION, PUBLIC_SUBKEY, RESERVED, SECRET_KEY, SECRET_SUBKEY, SIGNATURE, SYM_ENC_INTEGRITY_PRO, SYMMETRIC_KEY_ENC, SYMMETRIC_KEY_ENC_SESSION, TRUST, USER_ATTRIBUTE, USER_ID
 
Fields inherited from interface org.bouncycastle.bcpg.PublicKeyAlgorithmTags
DIFFIE_HELLMAN, DSA, EC, ECDSA, ELGAMAL_ENCRYPT, ELGAMAL_GENERAL, RSA_ENCRYPT, RSA_GENERAL, RSA_SIGN
 
Fields inherited from interface org.bouncycastle.bcpg.SymmetricKeyAlgorithmTags
AES_128, AES_192, AES_256, BLOWFISH, CAST5, DES, IDEA, NULL, SAFER, TRIPLE_DES, TWOFISH
 
Fields inherited from interface org.bouncycastle.bcpg.HashAlgorithmTags
DOUBLE_SHA, HAVAL_5_160, MD2, MD5, RIPEMD160, SHA1, TIGER_192
 
Method Summary
 java.io.InputStream getDataStream(PGPPrivateKey privKey, java.lang.String provider)
          Return the decrypted data stream for the packet.
 java.io.InputStream getInputStream()
          Return the raw input stream for the data stream.
 long getKeyID()
          Return the keyID for the key used to encrypt the data.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getKeyID

public long getKeyID()
Return the keyID for the key used to encrypt the data.
Returns:
long

getInputStream

public java.io.InputStream getInputStream()
Return the raw input stream for the data stream.
Returns:
InputStream

getDataStream

public java.io.InputStream getDataStream(PGPPrivateKey privKey,
                                         java.lang.String provider)
                                  throws PGPException,
                                         java.security.NoSuchProviderException
Return the decrypted data stream for the packet.
Parameters:
privKey -  
provider -  
Returns:
InputStream
Throws:
PGPException -  
java.security.NoSuchProviderException -  

Bouncy Castle Cryptography 1.20