org.mozilla.jss.pkix.cmc

Class CMCStatusInfo

Implemented Interfaces:
ASN1Value

public class CMCStatusInfo
extends java.lang.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 class
CMCStatusInfo.Template

Field Summary

static INTEGER
BODYIDMAX
static int
CONFIRM_REQUIRED
static int
FAILED
static int
NOSUPPORT
static int
PENDING
static int
RESERVED
static String[]
STATUS
static int
SUCCESS
static Tag
TAG

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

void
addBodyPartID(int id)
Adds a BodyPartID to the bodyList SEQUENCE.
void
encode(OutputStream ostream)
void
encode(Tag implicitTag, OutputStream ostream)
SEQUENCE
getBodyList()
OtherInfo
getOtherInfo()
int
getStatus()
String
getStatusString()
Tag
getTag()
static CMCStatusInfo.Template
getTemplate()
void
setStatusString(String statusString)
Sets the statusString field.

Field Details

BODYIDMAX

public static final INTEGER BODYIDMAX

CONFIRM_REQUIRED

public static final int CONFIRM_REQUIRED
Field Value:
5

FAILED

public static final int FAILED
Field Value:
2

NOSUPPORT

public static final int NOSUPPORT
Field Value:
4

PENDING

public static final int PENDING
Field Value:
3

RESERVED

public static final int RESERVED
Field Value:
1

STATUS

public static final String[] STATUS

SUCCESS

public static final int SUCCESS
Field Value:
0

TAG

public static final Tag TAG

Constructor Details

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.

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 Details

addBodyPartID

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

encode

public void encode(OutputStream ostream)
            throws IOException
Specified by:
encode in interface ASN1Value

encode

public void encode(Tag implicitTag,
                   OutputStream ostream)
            throws IOException
Specified by:
encode in interface ASN1Value

getBodyList

public SEQUENCE getBodyList()

getOtherInfo

public OtherInfo getOtherInfo()

getStatus

public int getStatus()

getStatusString

public String getStatusString()

getTag

public Tag getTag()
Specified by:
getTag in interface ASN1Value

getTemplate

public static CMCStatusInfo.Template getTemplate()

setStatusString

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