org.mozilla.jss.pkix.cmc

Class OtherMsg

public class OtherMsg extends Object implements 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
static classOtherMsg.Template
A Template for decoding a OtherMsg.
Constructor Summary
OtherMsg(INTEGER bodyPartID, OBJECT_IDENTIFIER otherMsgType, ANY otherMsgValue)
Constructs a new OtherMsg from its components.
Method Summary
voidencode(OutputStream ostream)
voidencode(Tag implicitTag, OutputStream ostream)
INTEGERgetBodyPartID()
Returns the bodyPartID field.
OBJECT_IDENTIFIERgetOtherMsgType()
Returns the otherMsgType field.
ANYgetOtherMsgValue()
Returns the otherMsgValue field.
TaggetTag()
static OtherMsg.TemplategetTemplate()

Constructor Detail

OtherMsg

public OtherMsg(INTEGER bodyPartID, OBJECT_IDENTIFIER otherMsgType, ANY otherMsgValue)
Constructs a new OtherMsg from its components.

Method Detail

encode

public void encode(OutputStream ostream)

encode

public void encode(Tag implicitTag, OutputStream ostream)

getBodyPartID

public INTEGER getBodyPartID()
Returns the bodyPartID field.

getOtherMsgType

public OBJECT_IDENTIFIER getOtherMsgType()
Returns the otherMsgType field.

getOtherMsgValue

public ANY getOtherMsgValue()
Returns the otherMsgValue field.

getTag

public Tag getTag()

getTemplate

public static OtherMsg.Template getTemplate()