Class ContentInfo
java.lang.Object
org.mozilla.jss.netscape.security.pkcs.ContentInfo
A ContentInfo type, as defined in PKCS#7.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ObjectIdentifier
static final ObjectIdentifier
static final ObjectIdentifier
static final ObjectIdentifier
static final ObjectIdentifier
static final ObjectIdentifier
static final ObjectIdentifier
-
Constructor Summary
ConstructorsConstructorDescriptionContentInfo
(byte[] bytes) Make a contentInfo of type data.ContentInfo
(DerInputStream derin) ContentInfo
(ObjectIdentifier contentType, DerValue content) -
Method Summary
Modifier and TypeMethodDescriptionvoid
encode
(DerOutputStream out) byte[]
Returns a byte array representation of the data held in the content field.byte[]
getData()
toString()
-
Field Details
-
PKCS7_OID
-
DATA_OID
-
SIGNED_DATA_OID
-
ENVELOPED_DATA_OID
-
SIGNED_AND_ENVELOPED_DATA_OID
-
DIGESTED_DATA_OID
-
ENCRYPTED_DATA_OID
-
-
Constructor Details
-
ContentInfo
-
ContentInfo
public ContentInfo(byte[] bytes) Make a contentInfo of type data. -
ContentInfo
- Throws:
IOException
ParsingException
-
-
Method Details
-
getContent
-
getData
- Throws:
IOException
-
encode
- Throws:
IOException
-
getContentBytes
Returns a byte array representation of the data held in the content field.- Throws:
IOException
-
toString
-