org.mozilla.jss.pkix.cmc

Class TaggedContentInfo

Implemented Interfaces:
ASN1Value

public class TaggedContentInfo
extends java.lang.Object
implements ASN1Value

CMC TaggedContentInfo.
 The definition of TaggedContentInfo comes from RFC 2797 Section 3.6.
 TaggedContentInfo ::= SEQUENCE {
      bodyPartID      BodyPartID,
      contentInfo     ContentInfo}
 

Nested Class Summary

static class
TaggedContentInfo.Template
A Template for decoding a TaggedContentInfo.

Constructor Summary

TaggedContentInfo(INTEGER bodyPartID, ContentInfo contentInfo)
Constructs a new TaggedContentInfo from its components.

Method Summary

void
encode(OutputStream ostream)
Write this value's DER encoding to an output stream using its own base tag.
void
encode(Tag implicitTag, OutputStream ostream)
Write this value's DER encoding to an output stream using an implicit tag.
INTEGER
getBodyPartID()
Returns the bodyPartID field.
ContentInfo
getContentInfo()
Returns the contentInfo field.
Tag
getTag()
Returns the base tag for this type, not counting any tags that may be imposed on it by its context.
static TaggedContentInfo.Template
getTemplate()

Constructor Details

TaggedContentInfo

public TaggedContentInfo(INTEGER bodyPartID,
                         ContentInfo contentInfo)
Constructs a new TaggedContentInfo from its components.

Method Details

encode

public void encode(OutputStream ostream)
            throws IOException
Write this value's DER encoding to an output stream using its own base tag.
Specified by:
encode in interface ASN1Value

encode

public void encode(Tag implicitTag,
                   OutputStream ostream)
            throws IOException
Write this value's DER encoding to an output stream using an implicit tag.
Specified by:
encode in interface ASN1Value

getBodyPartID

public INTEGER getBodyPartID()
Returns the bodyPartID field.

getContentInfo

public ContentInfo getContentInfo()
Returns the contentInfo field.

getTag

public Tag getTag()
Returns the base tag for this type, not counting any tags that may be imposed on it by its context.
Specified by:
getTag in interface ASN1Value

getTemplate

public static TaggedContentInfo.Template getTemplate()