org.mozilla.jss.pkix.cmc
Class TaggedContentInfo
java.lang.Object
org.mozilla.jss.pkix.cmc.TaggedContentInfo
- ASN1Value
public class TaggedContentInfo
extends java.lang.Object
CMC
TaggedContentInfo.
The definition of TaggedContentInfo comes from RFC 2797 Section 3.6.
TaggedContentInfo ::= SEQUENCE {
bodyPartID BodyPartID,
contentInfo ContentInfo}
TaggedContentInfo
public TaggedContentInfo(INTEGER bodyPartID,
ContentInfo contentInfo)
Constructs a new TaggedContentInfo
from its components.
encode
public void encode(OutputStream ostream)
throws IOException
Write this value's DER encoding to an output stream using
its own base tag.
- 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.
- 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.
- getTag in interface ASN1Value