All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class iaik.pkcs.PKCS7ContentInfo

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

public class PKCS7ContentInfo
extends Object
This class implements the PKCS#7 ContentInfo type.


Constructor Index

 o PKCS7ContentInfo()
Default constructor.
 o PKCS7ContentInfo(ASN1Object)
Creates a PKCS#7 ContentInfo from a ASN1Object.
 o PKCS7ContentInfo(ObjectID)
Creates a PKCS#7 ContentInfo from a content type and data.
 o PKCS7ContentInfo(ObjectID, ASN1Object)
Creates a PKCS#7 ContentInfo from a content type and an ASN1Object.
 o PKCS7ContentInfo(PKCS7Content)
Creates a PKCS#7 ContentInfo from a content type and data.

Method Index

 o getContent()
Returns the content.
 o getContentType()
Returns the content type.
 o setContent(PKCS7Content)
Sets the content.
 o setContentType(ObjectID)
Sets the type of the content.
 o toASN1Object()
Returns this PKCS#7 ContentInfo as ASN1Object.
 o toByteArray()
 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 PKCS7ContentInfo
 public PKCS7ContentInfo()
Default constructor. Creates an empty object.

 o PKCS7ContentInfo
 public PKCS7ContentInfo(PKCS7Content content)
Creates a PKCS#7 ContentInfo from a content type and data.

Parameters:
contentType - the type of the content
content - the content
 o PKCS7ContentInfo
 public PKCS7ContentInfo(ObjectID contentType)
Creates a PKCS#7 ContentInfo from a content type and data.

Parameters:
contentType - the type of the content
content - the content
 o PKCS7ContentInfo
 public PKCS7ContentInfo(ObjectID contentType,
                         ASN1Object content) throws PKCSException
Creates a PKCS#7 ContentInfo from a content type and an ASN1Object.

Parameters:
contentType - the type of the content
obj - the content as ASN1Object
Throws: PKCSException
if the content identified by contentType could not be parsed
 o PKCS7ContentInfo
 public PKCS7ContentInfo(ASN1Object obj) throws PKCSException
Creates a PKCS#7 ContentInfo from a ASN1Object.

Parameters:
obj - the PKCS#7 ContentInfo as a ASN1Object
Throws: PKCSException
if the ASN1Object could not be parsed

Methods

 o toASN1Object
 public ASN1Object toASN1Object() throws PKCSException
Returns this PKCS#7 ContentInfo as ASN1Object.

Returns:
this PKCS#7 ContentInfo as ASN1Object
 o toByteArray
 public byte[] toByteArray() throws PKCSException
 o getContent
 public PKCS7Content getContent()
Returns the content.

Returns:
the content
 o setContent
 public void setContent(PKCS7Content content)
Sets the content.

Parameters:
content - the content
 o getContentType
 public ObjectID getContentType()
Returns the content type.

Returns:
the content type
 o setContentType
 public void setContentType(ObjectID contentType)
Sets the type of the content.

Parameters:
contentType - the type of the content
 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