com.netscape.cmsutil.ocsp
Class SingleResponse

java.lang.Object
  extended by com.netscape.cmsutil.ocsp.SingleResponse
All Implemented Interfaces:
org.mozilla.jss.asn1.ASN1Value

public class SingleResponse
extends java.lang.Object
implements org.mozilla.jss.asn1.ASN1Value

RFC 2560:

 SingleResponse ::= SEQUENCE {
 certID                       CertID,
 certStatus                   CertStatus,
 thisUpdate                   GeneralizedTime,
 nextUpdate           [0]     EXPLICIT GeneralizedTime OPTIONAL,
 singleExtensions     [1]     EXPLICIT Extensions OPTIONAL }
 

Version:
$Revision$ $Date$

Nested Class Summary
static class SingleResponse.Template
          A Template for decoding ResponseBytes.
 
Constructor Summary
SingleResponse(CertID cid, CertStatus s, org.mozilla.jss.asn1.GeneralizedTime thisUpdate, org.mozilla.jss.asn1.GeneralizedTime nextUpdate)
           
 
Method Summary
 void encode(java.io.OutputStream os)
           
 void encode(org.mozilla.jss.asn1.Tag t, java.io.OutputStream os)
           
 CertID getCertID()
           
 CertStatus getCertStatus()
           
 org.mozilla.jss.pkix.cert.Extension getExtensionAt(int pos)
           
 int getExtensionCount()
           
 org.mozilla.jss.asn1.GeneralizedTime getNextUpdate()
           
 org.mozilla.jss.asn1.Tag getTag()
           
static SingleResponse.Template getTemplate()
           
 org.mozilla.jss.asn1.GeneralizedTime getThisUpdate()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SingleResponse

public SingleResponse(CertID cid,
                      CertStatus s,
                      org.mozilla.jss.asn1.GeneralizedTime thisUpdate,
                      org.mozilla.jss.asn1.GeneralizedTime nextUpdate)
Method Detail

getCertID

public CertID getCertID()

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,
                   java.io.OutputStream os)
            throws java.io.IOException
Specified by:
encode in interface org.mozilla.jss.asn1.ASN1Value
Throws:
java.io.IOException

encode

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

getCertStatus

public CertStatus getCertStatus()

getThisUpdate

public org.mozilla.jss.asn1.GeneralizedTime getThisUpdate()

getNextUpdate

public org.mozilla.jss.asn1.GeneralizedTime getNextUpdate()

getExtensionCount

public int getExtensionCount()

getExtensionAt

public org.mozilla.jss.pkix.cert.Extension getExtensionAt(int pos)

getTemplate

public static SingleResponse.Template getTemplate()