Package org.mozilla.jss.pkix.cmc
Class OtherReqMsg
java.lang.Object
org.mozilla.jss.pkix.cmc.OtherReqMsg
- All Implemented Interfaces:
ASN1Value
CMC OtherReqMsg.
OtherReqMsg is to be used by the "orm" field of the TaggedRequest per definition in RFC 5272. OtherReqMsg ::= SEQUENCE { bodyPartID BodyPartID, requestMessageType Object Identifier, requestMessageValue ANY defined by requestMessageType}
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
A Template for decoding aOtherReqMsg
. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate INTEGER
private OBJECT_IDENTIFIER
private ANY
private SEQUENCE
private static final Tag
private static final OtherReqMsg.Template
-
Constructor Summary
ConstructorsConstructorDescriptionOtherReqMsg
(INTEGER bodyPartID, OBJECT_IDENTIFIER requestMessageType, ANY requestMessageValue) Constructs a newOtherReqMsg
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 therequestMessageType
field.Returns therequestMessageValue
field.getTag()
Returns the base tag for this type, not counting any tags that may be imposed on it by its context.static OtherReqMsg.Template
-
Field Details
-
bodyPartID
-
requestMessageType
-
requestMessageValue
-
sequence
-
TAG
-
templateInstance
-
-
Constructor Details
-
OtherReqMsg
public OtherReqMsg(INTEGER bodyPartID, OBJECT_IDENTIFIER requestMessageType, ANY requestMessageValue) Constructs a newOtherReqMsg
from its components.
-
-
Method Details
-
getBodyPartID
Returns thebodyPartID
field. -
getOtherReqMsgType
Returns therequestMessageType
field. -
getOtherReqMsgValue
Returns therequestMessageValue
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
-