org.mozilla.jss.pkix.cmc
Class CMCStatusInfo
java.lang.Object
org.mozilla.jss.pkix.cmc.CMCStatusInfo
- ASN1Value
public class CMCStatusInfo
extends java.lang.Object
CMC
CMCStatusInfo:
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
}
BODYIDMAX
public static final INTEGER BODYIDMAX
CONFIRM_REQUIRED
public static final int CONFIRM_REQUIRED
FAILED
public static final int FAILED
NOSUPPORT
public static final int NOSUPPORT
PENDING
public static final int PENDING
RESERVED
public static final int RESERVED
STATUS
public static final String[] STATUS
SUCCESS
public static final int SUCCESS
TAG
public static final Tag TAG
CMCStatusInfo
public CMCStatusInfo(int status,
SEQUENCE bodyList)
status
- A CMCStatus constant.bodyList
- The sequence of bodyPartID.
CMCStatusInfo
public CMCStatusInfo(int status,
SEQUENCE bodyList,
String statusString,
OtherInfo otherInfo)
status
- A CMCStatus constant.bodyList
- The sequence of bodyPartID.statusString
- A String.
CMCStatusInfo
public CMCStatusInfo(INTEGER status,
SEQUENCE bodyList,
UTF8String statusString,
OtherInfo otherInfo)
Create a CMCStatusInfo from decoding.
status
- A CMCStatus constant.bodyList
- The sequence of bodyPartID.statusString
- A UTF8String.otherInfo
- A CHOICE.
addBodyPartID
public void addBodyPartID(int id)
Adds a BodyPartID to the bodyList SEQUENCE.
encode
public void encode(OutputStream ostream)
throws IOException
- encode in interface ASN1Value
encode
public void encode(Tag implicitTag,
OutputStream ostream)
throws IOException
- encode in interface ASN1Value
getBodyList
public SEQUENCE getBodyList()
getStatus
public int getStatus()
getStatusString
public String getStatusString()
setStatusString
public void setStatusString(String statusString)
Sets the statusString
field. May be null, since this
field is optional.