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 class
A Template for decoding aOtherMsg
. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate INTEGER
private OBJECT_IDENTIFIER
private ANY
private SEQUENCE
private static final Tag
private static final OtherMsg.Template
-
Constructor Summary
ConstructorsConstructorDescriptionOtherMsg
(INTEGER bodyPartID, OBJECT_IDENTIFIER otherMsgType, ANY otherMsgValue) Constructs a newOtherMsg
from its components. -
Method Summary
Modifier and TypeMethodDescriptionvoid
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.Returns thebodyPartID
field.Returns theotherMsgType
field.Returns theotherMsgValue
field.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 newOtherMsg
from its components.
-
-
Method Details
-
getBodyPartID
Returns thebodyPartID
field. -
getOtherMsgType
Returns theotherMsgType
field. -
getOtherMsgValue
Returns theotherMsgValue
field. -
getTag
Description copied from interface:ASN1Value
Returns the base tag for this type, not counting any tags that may be imposed on it by its context. -
encode
Description copied from interface:ASN1Value
Write this value's DER encoding to an output stream using its own base tag.- Specified by:
encode
in interfaceASN1Value
- Parameters:
ostream
- Output stream.- Throws:
IOException
- If an error occurred.
-
encode
Description copied from interface:ASN1Value
Write this value's DER encoding to an output stream using an implicit tag.- Specified by:
encode
in interfaceASN1Value
- Parameters:
implicitTag
- Implicit tag.ostream
- Output stream.- Throws:
IOException
- If an error occurred.
-
getTemplate
-