All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class iaik.pkcs.PKCS7EnvelopedData

java.lang.Object
   |
   +----iaik.pkcs.PKCS7EnvelopedData

public class PKCS7EnvelopedData
extends Object
implements PKCS7Content
This class implements the PKCS#7 EnvelopedData type.


Constructor Index

 o PKCS7EnvelopedData(ASN1Object)
Creates a PKCS#7 EnvelopedData from a ASN1Object.
 o PKCS7EnvelopedData(RecipientInfo[], EncryptedContentInfo)
Constructs a PKCS#7 EnvelopedData type with an already created EncryptedContentInfo.
 o PKCS7EnvelopedData(RecipientInfo[], PKCS7ContentInfo, AlgorithmID)
Constructs a PKCS#7 EnvelopedData type with an already created EncryptedContentInfo.

Method Index

 o decrypt(Key)
 o getContentType()
 o getEncryptedContentInfo()
 o getRecipientInfos()
 o getVersion()
 o toASN1Object()
Returns this PKCS#7 EnvelopedData as ASN1Object.
 o toString()
Returns a string that represents the contents of this PKCS#7 ContentInfo.
 o toString(boolean)
Returns a string that represents the contents of this PKCS#7 ContentInfo.

Constructors

 o PKCS7EnvelopedData
 public PKCS7EnvelopedData(RecipientInfo recipients[],
                           EncryptedContentInfo encContentInfo)
Constructs a PKCS#7 EnvelopedData type with an already created EncryptedContentInfo. This class is only used to ASN.1 encode the data. No further manipulation of the data is done.

Parameters:
recipients - information about the recipients
encContentInfo - the encrypted content
 o PKCS7EnvelopedData
 public PKCS7EnvelopedData(RecipientInfo recipients[],
                           PKCS7ContentInfo content,
                           AlgorithmID contentEncAlg) throws PKCSException
Constructs a PKCS#7 EnvelopedData type with an already created EncryptedContentInfo. This class is only used to ASN.1 encode the data. No further manipulation of the data is done.

Parameters:
recipients - information about the recipients
content - the content to encrypt
contentEncAlg - the encryption algorithm to use
Throws: PKCSException
if a new EnvelopedData object could not be created
 o PKCS7EnvelopedData
 public PKCS7EnvelopedData(ASN1Object obj) throws CodingException
Creates a PKCS#7 EnvelopedData from a ASN1Object.

Parameters:
obj - the PKCS#7 EnvelopedData as a ASN1Object

Methods

 o getContentType
 public ObjectID getContentType()
 o toASN1Object
 public ASN1Object toASN1Object()
Returns this PKCS#7 EnvelopedData as ASN1Object.

Returns:
this PKCS#7 EnvelopedData as ASN1Object
 o decrypt
 public PKCS7ContentInfo decrypt(Key key) throws PKCSException
 o getVersion
 public int getVersion()
 o getRecipientInfos
 public RecipientInfo[] getRecipientInfos()
 o getEncryptedContentInfo
 public EncryptedContentInfo getEncryptedContentInfo()
 o toString
 public String toString()
Returns a string that represents the contents of this PKCS#7 ContentInfo.

Returns:
the string representation
Overrides:
toString in class Object
 o toString
 public String toString(boolean detailed)
Returns a string that represents the contents of this PKCS#7 ContentInfo.

Parameters:
detailed - - whether or not to give detailed information
Returns:
the string representation

All Packages  Class Hierarchy  This Package  Previous  Next  Index