Class BasicOCSPResponse

java.lang.Object
com.netscape.cmsutil.ocsp.BasicOCSPResponse
All Implemented Interfaces:
Response, org.mozilla.jss.asn1.ASN1Value

public class BasicOCSPResponse extends Object implements Response
RFC 2560:
 BasicOCSPResponse       ::= SEQUENCE {
    tbsResponseData      ResponseData,
    signatureAlgorithm   AlgorithmIdentifier,
    signature            BIT STRING,
    certs                [0] EXPLICIT SEQUENCE OF Certificate OPTIONAL }
 
Version:
$Revision$ $Date$
  • Constructor Details

    • BasicOCSPResponse

      public BasicOCSPResponse(ResponseData rd, org.mozilla.jss.pkix.primitive.AlgorithmIdentifier signAlg, org.mozilla.jss.asn1.BIT_STRING signature, org.mozilla.jss.pkix.cert.Certificate[] certs)
    • BasicOCSPResponse

      public BasicOCSPResponse(org.mozilla.jss.asn1.OCTET_STRING os) throws org.mozilla.jss.asn1.InvalidBERException, IOException
      Throws:
      org.mozilla.jss.asn1.InvalidBERException
      IOException
    • BasicOCSPResponse

      public BasicOCSPResponse(byte[] data) throws org.mozilla.jss.asn1.InvalidBERException, IOException
      Throws:
      org.mozilla.jss.asn1.InvalidBERException
      IOException
  • Method Details

    • getTag

      public org.mozilla.jss.asn1.Tag getTag()
      Specified by:
      getTag in interface org.mozilla.jss.asn1.ASN1Value
    • encode

      public void encode(org.mozilla.jss.asn1.Tag t, OutputStream os) throws IOException
      Specified by:
      encode in interface org.mozilla.jss.asn1.ASN1Value
      Throws:
      IOException
    • encode

      public void encode(OutputStream os) throws IOException
      Specified by:
      encode in interface org.mozilla.jss.asn1.ASN1Value
      Throws:
      IOException
    • getBytes

      public org.mozilla.jss.asn1.OCTET_STRING getBytes()
      Specified by:
      getBytes in interface Response
    • getResponseData

      public ResponseData getResponseData()
    • getSignatureAlgorithm

      public org.mozilla.jss.pkix.primitive.AlgorithmIdentifier getSignatureAlgorithm()
    • getSignature

      public org.mozilla.jss.asn1.BIT_STRING getSignature()
    • getCertsCount

      public int getCertsCount()
    • getCerts

      public org.mozilla.jss.pkix.cert.Certificate[] getCerts()
    • getCertificateAt

      public org.mozilla.jss.pkix.cert.Certificate getCertificateAt(int pos)
    • getTemplate

      public static BasicOCSPResponse.Template getTemplate()