Class CertRequest

java.lang.Object
org.mozilla.jss.pkix.crmf.CertRequest
All Implemented Interfaces:
ASN1Value

public class CertRequest extends Object implements ASN1Value
A PKIX CertRequest. Currently can only be decoded from its BER encoding. There are no methods for constructing one.
  • Field Details

    • certReqId

      private INTEGER certReqId
    • certTemplate

      private CertTemplate certTemplate
    • controls

      private SEQUENCE controls
    • TAG

      public static final Tag TAG
  • Constructor Details

    • CertRequest

      public CertRequest(INTEGER certReqId, CertTemplate certTemplate, SEQUENCE controls)
      Parameters:
      certReqId - May NOT be null.
      certTemplate - May NOT be null.
      controls - May be null.
  • Method Details

    • getCertReqId

      public INTEGER getCertReqId()
      Returns the certReqId (certificate request ID) field.
    • getCertTemplate

      public CertTemplate getCertTemplate()
      Returns the CertTemplate field.
    • getControls

      public SEQUENCE getControls()
      Returns the controls field.
    • numControls

      public int numControls()
      Returns the number of optional Controls in the cert request. The number may be zero.
    • controlAt

      public AVA controlAt(int i)
      Returns the ith Control. i must be in the range [0..numControls-1].
    • 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
      This method is not yet supported.
      Specified by:
      encode in interface ASN1Value
      Parameters:
      ostream - Output stream.
      Throws:
      IOException - If an error occurred.
    • encode

      public void encode(Tag implicit, OutputStream ostream) throws IOException
      This method is not yet supported.
      Specified by:
      encode in interface ASN1Value
      Parameters:
      implicit - Implicit tag.
      ostream - Output stream.
      Throws:
      IOException - If an error occurred.