public class ContentInfo
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static ObjectIdentifier |
DATA_OID |
static ObjectIdentifier |
DIGESTED_DATA_OID |
static ObjectIdentifier |
ENCRYPTED_DATA_OID |
static ObjectIdentifier |
ENVELOPED_DATA_OID |
static ObjectIdentifier |
PKCS7_OID |
static ObjectIdentifier |
SIGNED_AND_ENVELOPED_DATA_OID |
static ObjectIdentifier |
SIGNED_DATA_OID |
Constructor and Description |
---|
ContentInfo(byte[] bytes)
Make a contentInfo of type data.
|
ContentInfo(DerInputStream derin) |
ContentInfo(ObjectIdentifier contentType,
DerValue content) |
Modifier and Type | Method and Description |
---|---|
void |
encode(DerOutputStream out) |
DerValue |
getContent() |
byte[] |
getContentBytes()
Returns a byte array representation of the data held in
the content field.
|
byte[] |
getData() |
java.lang.String |
toString() |
public static final ObjectIdentifier PKCS7_OID
public static final ObjectIdentifier DATA_OID
public static final ObjectIdentifier SIGNED_DATA_OID
public static final ObjectIdentifier ENVELOPED_DATA_OID
public static final ObjectIdentifier SIGNED_AND_ENVELOPED_DATA_OID
public static final ObjectIdentifier DIGESTED_DATA_OID
public static final ObjectIdentifier ENCRYPTED_DATA_OID
public ContentInfo(ObjectIdentifier contentType, DerValue content)
public ContentInfo(byte[] bytes)
public ContentInfo(DerInputStream derin) throws java.io.IOException, ParsingException
java.io.IOException
ParsingException
public DerValue getContent()
public byte[] getData() throws java.io.IOException
java.io.IOException
public void encode(DerOutputStream out) throws java.io.IOException
java.io.IOException
public byte[] getContentBytes() throws java.io.IOException
java.io.IOException
public java.lang.String toString()
toString
in class java.lang.Object