public class CMCStatusInfo extends java.lang.Object implements ASN1Value
CMCStatusInfo ::= SEQUENCE { cMCStatus CMCStatus, bodyList SEQUENCE SIZE (1..MAX) OF BodyPartID, statusString UTF8String OPTIONAL, otherInfo CHOICE { failInfo CMCFailInfo, pendInfo PendInfo } OPTIONAL } PendInfo ::= SEQUENCE { pendToken OCTET STRING, pendTime GeneralizedTime }
Modifier and Type | Class and Description |
---|---|
static class |
CMCStatusInfo.Template |
Modifier and Type | Field and Description |
---|---|
static INTEGER |
BODYIDMAX |
static int |
CONFIRM_REQUIRED |
static int |
FAILED |
static int |
NOSUPPORT |
static int |
PENDING |
static int |
RESERVED |
static java.lang.String[] |
STATUS |
static int |
SUCCESS |
static Tag |
TAG |
Constructor and Description |
---|
CMCStatusInfo(INTEGER status,
SEQUENCE bodyList,
UTF8String statusString,
OtherInfo otherInfo)
Create a CMCStatusInfo from decoding.
|
CMCStatusInfo(int status,
SEQUENCE bodyList) |
CMCStatusInfo(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 CMCStatusInfo.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 java.lang.String[] STATUS
public static final Tag TAG
public CMCStatusInfo(int status, SEQUENCE bodyList)
status
- A CMCStatus constant.bodyList
- The sequence of bodyPartID.public CMCStatusInfo(int status, SEQUENCE bodyList, java.lang.String statusString, OtherInfo otherInfo)
status
- A CMCStatus constant.bodyList
- The sequence of bodyPartID.statusString
- A String.otherInfo
- The OtherInfo choice.public CMCStatusInfo(INTEGER status, SEQUENCE bodyList, UTF8String statusString, OtherInfo otherInfo)
status
- A CMCStatus constant.bodyList
- The sequence of bodyPartID.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 CMCStatusInfo.Template getTemplate()