Package org.mozilla.jss.pkix.cmc
Class TaggedContentInfo
java.lang.Object
org.mozilla.jss.pkix.cmc.TaggedContentInfo
- All Implemented Interfaces:
ASN1Value
CMC TaggedContentInfo.
The definition of TaggedContentInfo comes from RFC 2797 Section 3.6.
TaggedContentInfo ::= SEQUENCE {
bodyPartID BodyPartID,
contentInfo ContentInfo}
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA Template for decoding aTaggedContentInfo. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate INTEGERprivate ContentInfoprivate SEQUENCEprivate static final Tagprivate static final TaggedContentInfo.Template -
Constructor Summary
ConstructorsConstructorDescriptionTaggedContentInfo(INTEGER bodyPartID, ContentInfo contentInfo) Constructs a newTaggedContentInfofrom its components. -
Method Summary
Modifier and TypeMethodDescriptionvoidencode(OutputStream ostream) Write this value's DER encoding to an output stream using its own base tag.voidencode(Tag implicitTag, OutputStream ostream) Write this value's DER encoding to an output stream using an implicit tag.Returns thebodyPartIDfield.Returns thecontentInfofield.getTag()Returns the base tag for this type, not counting any tags that may be imposed on it by its context.static TaggedContentInfo.Template
-
Field Details
-
bodyPartID
-
contentInfo
-
sequence
-
TAG
-
templateInstance
-
-
Constructor Details
-
TaggedContentInfo
Constructs a newTaggedContentInfofrom its components.
-
-
Method Details
-
getBodyPartID
Returns thebodyPartIDfield. -
getContentInfo
Returns thecontentInfofield. -
getTag
Description copied from interface:ASN1ValueReturns the base tag for this type, not counting any tags that may be imposed on it by its context. -
encode
Description copied from interface:ASN1ValueWrite this value's DER encoding to an output stream using its own base tag.- Specified by:
encodein interfaceASN1Value- Parameters:
ostream- Output stream.- Throws:
IOException- If an error occurred.
-
encode
Description copied from interface:ASN1ValueWrite this value's DER encoding to an output stream using an implicit tag.- Specified by:
encodein interfaceASN1Value- Parameters:
implicitTag- Implicit tag.ostream- Output stream.- Throws:
IOException- If an error occurred.
-
getTemplate
-