Package org.mozilla.jss.pkix.cmc
Class CMCStatusInfoV2
- java.lang.Object
-
- org.mozilla.jss.pkix.cmc.CMCStatusInfoV2
-
- All Implemented Interfaces:
ASN1Value
public class CMCStatusInfoV2 extends java.lang.Object implements ASN1Value
CMCStatusInfoV2 replaces CMCStatusInfo in rfc 5272 CMC CMCStatusInfoV2:CMCStatusInfoV2 ::= SEQUENCE { cMCStatus CMCStatus, bodyList SEQUENCE SIZE (1..MAX) BodyPartReference, statusString UTF8String OPTIONAL, otherInfo CHOICE { // defined in updated OtherInfo failInfo CMCFailInfo, pendInfo PendInfo, extendedFailInfo SEQUENCE { failInfoOID OBJECT IDENTIFIER, failInfoValue AttributeValue } OPTIONAL } } PendInfo ::= SEQUENCE { pendToken OCTET STRING, pendTime GeneralizedTime }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CMCStatusInfoV2.Template
-
Constructor Summary
Constructors Constructor Description CMCStatusInfoV2(int status, SEQUENCE bodyList)
CMCStatusInfoV2(int status, SEQUENCE bodyList, java.lang.String statusString, OtherInfo otherInfo)
CMCStatusInfoV2(INTEGER status, SEQUENCE bodyList, UTF8String statusString, OtherInfo otherInfo)
Create a CMCStatusInfoV2 from decoding.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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 CMCStatusInfoV2.Template
getTemplate()
void
setStatusString(java.lang.String statusString)
Sets thestatusString
field.
-
-
-
Field Detail
-
BODYIDMAX
public static final INTEGER BODYIDMAX
-
SUCCESS
public static final int SUCCESS
- See Also:
- Constant Field Values
-
RESERVED
public static final int RESERVED
- See Also:
- Constant Field Values
-
FAILED
public static final int FAILED
- See Also:
- Constant Field Values
-
PENDING
public static final int PENDING
- See Also:
- Constant Field Values
-
NOSUPPORT
public static final int NOSUPPORT
- See Also:
- Constant Field Values
-
CONFIRM_REQUIRED
public static final int CONFIRM_REQUIRED
- See Also:
- Constant Field Values
-
POP_REQUIRED
public static final int POP_REQUIRED
- See Also:
- Constant Field Values
-
PARTIAL
public static final int PARTIAL
- See Also:
- Constant Field Values
-
STATUS
public static final java.lang.String[] STATUS
-
TAG
public static final Tag TAG
-
-
Constructor Detail
-
CMCStatusInfoV2
public CMCStatusInfoV2(int status, SEQUENCE bodyList)
- Parameters:
status
- A CMCStatus constant.bodyList
- The sequence of BodyPartReference.
-
CMCStatusInfoV2
public CMCStatusInfoV2(int status, SEQUENCE bodyList, java.lang.String statusString, OtherInfo otherInfo)
- Parameters:
status
- A CMCStatus constant.bodyList
- The sequence of BodyPartReference.statusString
- A String.otherInfo
- The OtherInfo choice.
-
CMCStatusInfoV2
public CMCStatusInfoV2(INTEGER status, SEQUENCE bodyList, UTF8String statusString, OtherInfo otherInfo)
Create a CMCStatusInfoV2 from decoding.- Parameters:
status
- A CMCStatus constant.bodyList
- The sequence of BodyPartReference.statusString
- A UTF8String.otherInfo
- A CHOICE.
-
-
Method Detail
-
setStatusString
public void setStatusString(java.lang.String statusString)
Sets thestatusString
field. 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
public SEQUENCE getBodyList()
-
getStatusString
public java.lang.String getStatusString()
-
getOtherInfo
public OtherInfo getOtherInfo()
-
getTag
public Tag getTag()
Description copied from interface:ASN1Value
Returns the base tag for this type, not counting any tags that may be imposed on it by its context.
-
encode
public void encode(java.io.OutputStream ostream) throws java.io.IOException
Description copied from interface:ASN1Value
Write this value's DER encoding to an output stream using its own base tag.
-
encode
public void encode(Tag implicitTag, java.io.OutputStream ostream) throws java.io.IOException
Description copied from interface:ASN1Value
Write this value's DER encoding to an output stream using an implicit tag.
-
getTemplate
public static CMCStatusInfoV2.Template getTemplate()
-
-