org.mozilla.jss.pkix.cmc
Class ResponseBody
java.lang.Object
org.mozilla.jss.pkix.cmc.ResponseBody
- ASN1Value
public class ResponseBody
extends java.lang.Object
A ResponseBody for CMC full enrollment request.
ResponseBody ::= SEQUENCE {
controlSequence SEQUENCE SIZE(0..MAX) OF TaggedAttribute,
cmsSequence SEQUENCE SIZE(0..MAX) OF TaggedContentInfo,
otherMsgSequence SEQUENCE SIZE(0..MAX) OF OtherMsg
}
ResponseBody
public ResponseBody(SEQUENCE controlSequence,
SEQUENCE cmsSequence,
SEQUENCE otherMsgSequence)
Constructs a ResponseBody from its components.
controlSequence
- Sequence of TagggedAttribute.cmsSequence
- Sequence of TagggedContentInfo.otherMsgSequence
- Sequence of OtherMsg.
encode
public void encode(OutputStream ostream)
throws IOException
Write this value's DER encoding to an output stream using
its own base tag.
- encode in interface ASN1Value
encode
public void encode(Tag implicitTag,
OutputStream ostream)
throws IOException
Write this value's DER encoding to an output stream using
an implicit tag.
- encode in interface ASN1Value
getCmsSequence
public SEQUENCE getCmsSequence()
getControlSequence
public SEQUENCE getControlSequence()
getOtherMsgSequence
public SEQUENCE getOtherMsgSequence()
getTag
public Tag getTag()
Returns the base tag for this type, not counting any tags
that may be imposed on it by its context.
- getTag in interface ASN1Value