Package org.mozilla.jss.pkix.cmc
Class CMCStatusInfo
java.lang.Object
org.mozilla.jss.pkix.cmc.CMCStatusInfo
- All Implemented Interfaces:
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
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final INTEGERprivate SEQUENCEstatic final intstatic final intstatic final intprivate OtherInfostatic final intstatic final intprivate INTEGERstatic final String[]private UTF8Stringstatic final intstatic final Tagprivate static final CMCStatusInfo.Template -
Constructor Summary
ConstructorsConstructorDescriptionCMCStatusInfo(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
Modifier and TypeMethodDescriptionvoidaddBodyPartID(int id) Adds a BodyPartID to the bodyList SEQUENCE.voidencode(OutputStream ostream) Write this value's DER encoding to an output stream using its own base tag.voidencode(Tag implicitTag, OutputStream ostream) Write this value's DER encoding to an output stream using an implicit tag.intgetTag()Returns the base tag for this type, not counting any tags that may be imposed on it by its context.static CMCStatusInfo.TemplatevoidsetStatusString(String statusString) Sets thestatusStringfield.
-
Field Details
-
BODYIDMAX
-
status
-
bodyList
-
statusString
-
otherInfo
-
SUCCESS
public static final int SUCCESS- See Also:
-
RESERVED
public static final int RESERVED- See Also:
-
FAILED
public static final int FAILED- See Also:
-
PENDING
public static final int PENDING- See Also:
-
NOSUPPORT
public static final int NOSUPPORT- See Also:
-
CONFIRM_REQUIRED
public static final int CONFIRM_REQUIRED- See Also:
-
STATUS
-
TAG
-
templateInstance
-
-
Constructor Details
-
CMCStatusInfo
- Parameters:
status- A CMCStatus constant.bodyList- The sequence of bodyPartID.
-
CMCStatusInfo
- 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 Details
-
setStatusString
Sets thestatusStringfield. May be null, since this field is optional. -
addBodyPartID
public void addBodyPartID(int id) Adds a BodyPartID to the bodyList SEQUENCE. -
getStatus
public int getStatus() -
getBodyList
-
getStatusString
-
getOtherInfo
-
getTag
Description copied from interface:ASN1ValueReturns the base tag for this type, not counting any tags that may be imposed on it by its context. -
encode
Description copied from interface:ASN1ValueWrite this value's DER encoding to an output stream using its own base tag.- Specified by:
encodein interfaceASN1Value- Parameters:
ostream- Output stream.- Throws:
IOException- If an error occurred.
-
encode
Description copied from interface:ASN1ValueWrite this value's DER encoding to an output stream using an implicit tag.- Specified by:
encodein interfaceASN1Value- Parameters:
implicitTag- Implicit tag.ostream- Output stream.- Throws:
IOException- If an error occurred.
-
getTemplate
-