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.
-
PKCS7EnvelopedData(ASN1Object)
- Creates a PKCS#7 EnvelopedData from a ASN1Object.
-
PKCS7EnvelopedData(RecipientInfo[], EncryptedContentInfo)
- Constructs a PKCS#7 EnvelopedData type with an already created EncryptedContentInfo.
-
PKCS7EnvelopedData(RecipientInfo[], PKCS7ContentInfo, AlgorithmID)
- Constructs a PKCS#7 EnvelopedData type with an already created EncryptedContentInfo.
-
decrypt(Key)
-
-
getContentType()
-
-
getEncryptedContentInfo()
-
-
getRecipientInfos()
-
-
getVersion()
-
-
toASN1Object()
- Returns this PKCS#7 EnvelopedData as ASN1Object.
-
toString()
- Returns a string that represents the contents of this
PKCS#7 ContentInfo.
-
toString(boolean)
- Returns a string that represents the contents of this
PKCS#7 ContentInfo.
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
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
PKCS7EnvelopedData
public PKCS7EnvelopedData(ASN1Object obj) throws CodingException
- Creates a PKCS#7 EnvelopedData from a ASN1Object.
- Parameters:
- obj - the PKCS#7 EnvelopedData as a ASN1Object
getContentType
public ObjectID getContentType()
toASN1Object
public ASN1Object toASN1Object()
- Returns this PKCS#7 EnvelopedData as ASN1Object.
- Returns:
- this PKCS#7 EnvelopedData as ASN1Object
decrypt
public PKCS7ContentInfo decrypt(Key key) throws PKCSException
getVersion
public int getVersion()
getRecipientInfos
public RecipientInfo[] getRecipientInfos()
getEncryptedContentInfo
public EncryptedContentInfo getEncryptedContentInfo()
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
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