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.
-
PKCS7ContentInfo()
- Default constructor.
-
PKCS7ContentInfo(ASN1Object)
- Creates a PKCS#7 ContentInfo from a ASN1Object.
-
PKCS7ContentInfo(ObjectID)
- Creates a PKCS#7 ContentInfo from a content type and data.
-
PKCS7ContentInfo(ObjectID, ASN1Object)
- Creates a PKCS#7 ContentInfo from a content type and an ASN1Object.
-
PKCS7ContentInfo(PKCS7Content)
- Creates a PKCS#7 ContentInfo from a content type and data.
-
getContent()
- Returns the content.
-
getContentType()
- Returns the content type.
-
setContent(PKCS7Content)
- Sets the content.
-
setContentType(ObjectID)
- Sets the type of the content.
-
toASN1Object()
- Returns this PKCS#7 ContentInfo as ASN1Object.
-
toByteArray()
-
-
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.
PKCS7ContentInfo
public PKCS7ContentInfo()
- Default constructor. Creates an empty object.
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
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
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
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
toASN1Object
public ASN1Object toASN1Object() throws PKCSException
- Returns this PKCS#7 ContentInfo as ASN1Object.
- Returns:
- this PKCS#7 ContentInfo as ASN1Object
toByteArray
public byte[] toByteArray() throws PKCSException
getContent
public PKCS7Content getContent()
- Returns the content.
- Returns:
- the content
setContent
public void setContent(PKCS7Content content)
- Sets the content.
- Parameters:
- content - the content
getContentType
public ObjectID getContentType()
- Returns the content type.
- Returns:
- the content type
setContentType
public void setContentType(ObjectID contentType)
- Sets the type of the content.
- Parameters:
- contentType - the type of the content
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