Package org.mozilla.jss.pkix.cmc
Class OtherMsg
java.lang.Object
org.mozilla.jss.pkix.cmc.OtherMsg
- All Implemented Interfaces:
ASN1Value
CMC OtherMsg.
The definition of OtherMsg comes from RFC 2797.
OtherMsg ::= SEQUENCE {
bodyPartID BodyPartID,
otherMsgType Object Identifier,
otherMsgValue ANY defined by otherMsgType}
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA Template for decoding aOtherMsg. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate INTEGERprivate OBJECT_IDENTIFIERprivate ANYprivate SEQUENCEprivate static final Tagprivate static final OtherMsg.Template -
Constructor Summary
ConstructorsConstructorDescriptionOtherMsg(INTEGER bodyPartID, OBJECT_IDENTIFIER otherMsgType, ANY otherMsgValue) Constructs a newOtherMsgfrom 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 theotherMsgTypefield.Returns theotherMsgValuefield.getTag()Returns the base tag for this type, not counting any tags that may be imposed on it by its context.static OtherMsg.Template
-
Field Details
-
bodyPartID
-
otherMsgType
-
otherMsgValue
-
sequence
-
TAG
-
templateInstance
-
-
Constructor Details
-
OtherMsg
Constructs a newOtherMsgfrom its components.
-
-
Method Details
-
getBodyPartID
Returns thebodyPartIDfield. -
getOtherMsgType
Returns theotherMsgTypefield. -
getOtherMsgValue
Returns theotherMsgValuefield. -
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
-