org.mozilla.jss.pkix.cms
public class EncapsulatedContentInfo extends Object implements ASN1Value
Nested Class Summary | |
---|---|
static class | EncapsulatedContentInfo.Template
A template for decoding a EncapsulatedContentInfo blob
|
Field Summary | |
---|---|
static Tag | TAG |
Constructor Summary | |
---|---|
EncapsulatedContentInfo(OBJECT_IDENTIFIER contentType, ASN1Value content)
Creates a EncapsulatedContentInfo with the given type and content.
|
Method Summary | |
---|---|
void | encode(OutputStream ostream) |
void | encode(Tag implicitTag, OutputStream ostream) |
OCTET_STRING | getContent()
Returns the content encoded as an OCTET_STRING. |
OBJECT_IDENTIFIER | getContentType()
Returns the contentType field, which determines what kind of content
is contained in this EncapsulatedContentInfo. |
Tag | getTag() |
static EncapsulatedContentInfo.Template | getTemplate()
Returns a singleton instance of a decoding template for EncapsulatedContentInfo. |
boolean | hasContent()
Returns true if the content field is present. |
Parameters: contentType The contentType of the EncapsulatedContentInfo. content The content of the EncapsulatedContentInfo. May be null
to signify that the optional content field is not present.
null
is returned.true
if the content field is present.