Class CMCStatusInfoV2

java.lang.Object
org.mozilla.jss.pkix.cmc.CMCStatusInfoV2
All Implemented Interfaces:
ASN1Value

public class CMCStatusInfoV2 extends 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
     }
 
  • Field Details

  • Constructor Details

    • CMCStatusInfoV2

      public CMCStatusInfoV2(int status, SEQUENCE bodyList)
      Parameters:
      status - A CMCStatus constant.
      bodyList - The sequence of BodyPartReference.
    • CMCStatusInfoV2

      public CMCStatusInfoV2(int status, SEQUENCE bodyList, 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 Details

    • setStatusString

      public void setStatusString(String statusString)
      Sets the statusString 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 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.
      Specified by:
      getTag in interface ASN1Value
      Returns:
      Base tag.
    • encode

      public void encode(OutputStream ostream) throws IOException
      Description copied from interface: ASN1Value
      Write this value's DER encoding to an output stream using its own base tag.
      Specified by:
      encode in interface ASN1Value
      Parameters:
      ostream - Output stream.
      Throws:
      IOException - If an error occurred.
    • encode

      public void encode(Tag implicitTag, OutputStream ostream) throws IOException
      Description copied from interface: ASN1Value
      Write this value's DER encoding to an output stream using an implicit tag.
      Specified by:
      encode in interface ASN1Value
      Parameters:
      implicitTag - Implicit tag.
      ostream - Output stream.
      Throws:
      IOException - If an error occurred.
    • getTemplate

      public static CMCStatusInfoV2.Template getTemplate()