public class CMCStatusInfoV2 extends java.lang.Object implements ASN1Value
CMCStatusInfoV2 ::= SEQUENCE { cMCStatus CMCStatus, bodyList SEQUENCE SIZE (1..MAX) BodyPartReference, statusString UTF8String OPTIONAL, otherInfo CHOICE { // defined in updated OtherInfo failInfo CMCFailInfo, pendInfo PendInfo, extendedFailInfo SEQUENCE { failInfoOID OBJECT IDENTIFIER, failInfoValue AttributeValue } OPTIONAL } } PendInfo ::= SEQUENCE { pendToken OCTET STRING, pendTime GeneralizedTime }
Modifier and Type | Class and Description |
---|---|
static class |
CMCStatusInfoV2.Template |
Modifier and Type | Field and Description |
---|---|
static INTEGER |
BODYIDMAX |
static int |
CONFIRM_REQUIRED |
static int |
FAILED |
static int |
NOSUPPORT |
static int |
PARTIAL |
static int |
PENDING |
static int |
POP_REQUIRED |
static int |
RESERVED |
static java.lang.String[] |
STATUS |
static int |
SUCCESS |
static Tag |
TAG |
Constructor and Description |
---|
CMCStatusInfoV2(INTEGER status,
SEQUENCE bodyList,
UTF8String statusString,
OtherInfo otherInfo)
Create a CMCStatusInfoV2 from decoding.
|
CMCStatusInfoV2(int status,
SEQUENCE bodyList) |
CMCStatusInfoV2(int status,
SEQUENCE bodyList,
java.lang.String statusString,
OtherInfo otherInfo) |
Modifier and Type | Method and Description |
---|---|
void |
addBodyPartID(int id)
Adds a BodyPartID to the bodyList SEQUENCE.
|
void |
encode(java.io.OutputStream ostream)
Write this value's DER encoding to an output stream using
its own base tag.
|
void |
encode(Tag implicitTag,
java.io.OutputStream ostream)
Write this value's DER encoding to an output stream using
an implicit tag.
|
SEQUENCE |
getBodyList() |
OtherInfo |
getOtherInfo() |
int |
getStatus() |
java.lang.String |
getStatusString() |
Tag |
getTag()
Returns the base tag for this type, not counting any tags
that may be imposed on it by its context.
|
static CMCStatusInfoV2.Template |
getTemplate() |
void |
setStatusString(java.lang.String statusString)
Sets the
statusString field. |
public static final INTEGER BODYIDMAX
public static final int SUCCESS
public static final int RESERVED
public static final int FAILED
public static final int PENDING
public static final int NOSUPPORT
public static final int CONFIRM_REQUIRED
public static final int POP_REQUIRED
public static final int PARTIAL
public static final java.lang.String[] STATUS
public static final Tag TAG
public CMCStatusInfoV2(int status, SEQUENCE bodyList)
status
- A CMCStatus constant.bodyList
- The sequence of BodyPartReference.public CMCStatusInfoV2(int status, SEQUENCE bodyList, java.lang.String statusString, OtherInfo otherInfo)
status
- A CMCStatus constant.bodyList
- The sequence of BodyPartReference.statusString
- A String.otherInfo
- The OtherInfo choice.public CMCStatusInfoV2(INTEGER status, SEQUENCE bodyList, UTF8String statusString, OtherInfo otherInfo)
status
- A CMCStatus constant.bodyList
- The sequence of BodyPartReference.statusString
- A UTF8String.otherInfo
- A CHOICE.public void setStatusString(java.lang.String statusString)
statusString
field. May be null, since this
field is optional.public void addBodyPartID(int id)
public int getStatus()
public SEQUENCE getBodyList()
public java.lang.String getStatusString()
public OtherInfo getOtherInfo()
public Tag getTag()
ASN1Value
public void encode(java.io.OutputStream ostream) throws java.io.IOException
ASN1Value
public void encode(Tag implicitTag, java.io.OutputStream ostream) throws java.io.IOException
ASN1Value
public static CMCStatusInfoV2.Template getTemplate()