Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  package org.bouncycastle.asn1.ocsp;
  
 
 public class SingleResponse
     extends ASN1Object
 {
     private CertID              certID;
     private CertStatus          certStatus;
     private ASN1GeneralizedTime  thisUpdate;
     private ASN1GeneralizedTime  nextUpdate;
     private Extensions      singleExtensions;

    

Deprecated:
use method taking ASN1GeneralizedTime and Extensions
Parameters:
certID
certStatus
thisUpdate
nextUpdate
singleExtensions
 
     public SingleResponse(
         CertID              certID,
         CertStatus          certStatus,
         ASN1GeneralizedTime thisUpdate,
         ASN1GeneralizedTime nextUpdate,
         X509Extensions singleExtensions)
     {
         this(certIDcertStatusthisUpdatenextUpdate, Extensions.getInstance(singleExtensions));
     }
 
     public SingleResponse(
         CertID              certID,
         CertStatus          certStatus,
         ASN1GeneralizedTime thisUpdate,
         ASN1GeneralizedTime nextUpdate,
         Extensions          singleExtensions)
     {
         this. = certID;
         this. = certStatus;
         this. = thisUpdate;
         this. = nextUpdate;
         this. = singleExtensions;
     }
 
     private SingleResponse(
         ASN1Sequence    seq)
     {
         this. = CertID.getInstance(seq.getObjectAt(0));
         this. = CertStatus.getInstance(seq.getObjectAt(1));
         this. = ASN1GeneralizedTime.getInstance(seq.getObjectAt(2));
 
         if (seq.size() > 4)
         {
             this. = ASN1GeneralizedTime.getInstance(
                                 (ASN1TaggedObject)seq.getObjectAt(3), true);
             this. = Extensions.getInstance(
                                 (ASN1TaggedObject)seq.getObjectAt(4), true);
         }
         else if (seq.size() > 3)
         {
             ASN1TaggedObject    o = (ASN1TaggedObject)seq.getObjectAt(3);
 
             if (o.getTagNo() == 0)
             {
                 this. = ASN1GeneralizedTime.getInstance(otrue);
             }
             else
             {
                 this. = Extensions.getInstance(otrue);
             }
         }
     }
 
     public static SingleResponse getInstance(
         ASN1TaggedObject obj,
         boolean          explicit)
     {
         return getInstance(ASN1Sequence.getInstance(objexplicit));
     }
 
     public static SingleResponse getInstance(
         Object  obj)
     {
         if (obj instanceof SingleResponse)
         {
             return (SingleResponse)obj;
         }
         else if (obj != null)
         {
            return new SingleResponse(ASN1Sequence.getInstance(obj));
        }
        return null;
    }
    public CertID getCertID()
    {
        return ;
    }
    public CertStatus getCertStatus()
    {
        return ;
    }
    {
        return ;
    }
    {
        return ;
    }
    {
        return ;
    }

    
Produce an object suitable for an ASN1OutputStream.
  SingleResponse ::= SEQUENCE {
          certID                       CertID,
          certStatus                   CertStatus,
          thisUpdate                   GeneralizedTime,
          nextUpdate         [0]       EXPLICIT GeneralizedTime OPTIONAL,
          singleExtensions   [1]       EXPLICIT Extensions OPTIONAL }
 
    {
        ASN1EncodableVector v = new ASN1EncodableVector();
        v.add();
        v.add();
        v.add();
        if ( != null)
        {
            v.add(new DERTaggedObject(true, 0, ));
        }
        if ( != null)
        {
            v.add(new DERTaggedObject(true, 1, ));
        }
        return new DERSequence(v);
    }
New to GrepCode? Check out our FAQ X