org.mozilla.jss.pkix.cmc

Class CMCStatusInfo

public class CMCStatusInfo extends Object implements ASN1Value

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 
     }
 
Nested Class Summary
static classCMCStatusInfo.Template
Field Summary
static INTEGERBODYIDMAX
static intCONFIRM_REQUIRED
static intFAILED
static intNOSUPPORT
static intPENDING
static intRESERVED
static String[]STATUS
static intSUCCESS
static TagTAG
Constructor Summary
CMCStatusInfo(int status, SEQUENCE bodyList)
CMCStatusInfo(int status, SEQUENCE bodyList, String statusString, OtherInfo otherInfo)
CMCStatusInfo(INTEGER status, SEQUENCE bodyList, UTF8String statusString, OtherInfo otherInfo)
Create a CMCStatusInfo from decoding.
Method Summary
voidaddBodyPartID(int id)
Adds a BodyPartID to the bodyList SEQUENCE.
voidencode(OutputStream ostream)
voidencode(Tag implicitTag, OutputStream ostream)
SEQUENCEgetBodyList()
OtherInfogetOtherInfo()
intgetStatus()
StringgetStatusString()
TaggetTag()
static CMCStatusInfo.TemplategetTemplate()
voidsetStatusString(String statusString)
Sets the statusString field.

Field Detail

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

Constructor Detail

CMCStatusInfo

public CMCStatusInfo(int status, SEQUENCE bodyList)

Parameters: status A CMCStatus constant. bodyList The sequence of bodyPartID.

CMCStatusInfo

public CMCStatusInfo(int status, SEQUENCE bodyList, String statusString, OtherInfo otherInfo)

Parameters: status A CMCStatus constant. bodyList The sequence of bodyPartID. statusString A String. OtherInfo The OtherInfo choice.

CMCStatusInfo

public CMCStatusInfo(INTEGER status, SEQUENCE bodyList, UTF8String statusString, OtherInfo otherInfo)
Create a CMCStatusInfo from decoding.

Parameters: status A CMCStatus constant. bodyList The sequence of bodyPartID. statusString A UTF8String. otherInfo A CHOICE.

Method Detail

addBodyPartID

public void addBodyPartID(int id)
Adds a BodyPartID to the bodyList SEQUENCE.

encode

public void encode(OutputStream ostream)

encode

public void encode(Tag implicitTag, OutputStream ostream)

getBodyList

public SEQUENCE getBodyList()

getOtherInfo

public OtherInfo getOtherInfo()

getStatus

public int getStatus()

getStatusString

public String getStatusString()

getTag

public Tag getTag()

getTemplate

public static CMCStatusInfo.Template getTemplate()

setStatusString

public void setStatusString(String statusString)
Sets the statusString field. May be null, since this field is optional.