Bouncy Castle Cryptography Library 1.79

org.bouncycastle.openpgp
Class PGPSessionKeyEncryptedData

java.lang.Object
  |
  +--org.bouncycastle.openpgp.PGPEncryptedData
        |
        +--org.bouncycastle.openpgp.PGPSymmetricKeyEncryptedData
              |
              +--org.bouncycastle.openpgp.PGPSessionKeyEncryptedData
All Implemented Interfaces:
AEADAlgorithmTags, SymmetricKeyAlgorithmTags

public class PGPSessionKeyEncryptedData
extends PGPSymmetricKeyEncryptedData

The basis of PGP encrypted data - encrypted data encrypted using a symmetric session key.


Inner classes inherited from class org.bouncycastle.openpgp.PGPEncryptedData
PGPEncryptedData.TruncatedStream
 
Fields inherited from interface org.bouncycastle.bcpg.SymmetricKeyAlgorithmTags
AES_128, AES_192, AES_256, BLOWFISH, CAMELLIA_128, CAMELLIA_192, CAMELLIA_256, CAST5, DES, IDEA, NULL, SAFER, TRIPLE_DES, TWOFISH
 
Fields inherited from interface org.bouncycastle.bcpg.AEADAlgorithmTags
EAX, GCM, OCB
 
Method Summary
 int getAlgorithm()
          Return the symmetric encryption algorithm that is used by the packet.
 java.io.InputStream getDataStream(SessionKeyDataDecryptorFactory dataDecryptorFactory)
           
 int getVersion()
          Return the version number of the Encrypted Session Key Packet.
 
Methods inherited from class org.bouncycastle.openpgp.PGPSymmetricKeyEncryptedData
createDecryptionStream
 
Methods inherited from class org.bouncycastle.openpgp.PGPEncryptedData
getInputStream, isAEAD, isIntegrityProtected, verify
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getAlgorithm

public int getAlgorithm()
Description copied from class: PGPEncryptedData
Return the symmetric encryption algorithm that is used by the packet.
Overrides:
getAlgorithm in class PGPEncryptedData
Following copied from class: org.bouncycastle.openpgp.PGPEncryptedData
Returns:
algorithm

getVersion

public int getVersion()
Description copied from class: PGPEncryptedData
Return the version number of the Encrypted Session Key Packet.
Overrides:
getVersion in class PGPEncryptedData
Following copied from class: org.bouncycastle.openpgp.PGPEncryptedData
Returns:
version

getDataStream

public java.io.InputStream getDataStream(SessionKeyDataDecryptorFactory dataDecryptorFactory)
                                  throws PGPException

Bouncy Castle Cryptography Library 1.79