Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  package org.bouncycastle.asn1.cmp;
  
 
 public class RevAnnContent
     extends ASN1Object
 {
     private PKIStatus status;
     private CertId certId;
     private ASN1GeneralizedTime badSinceDate;
     private Extensions crlDetails;
     
     private RevAnnContent(ASN1Sequence seq)
     {
          = PKIStatus.getInstance(seq.getObjectAt(0));
          = CertId.getInstance(seq.getObjectAt(1));
          = ASN1GeneralizedTime.getInstance(seq.getObjectAt(2));
          = ASN1GeneralizedTime.getInstance(seq.getObjectAt(3));
 
         if (seq.size() > 4)
         {
              = Extensions.getInstance(seq.getObjectAt(4));
         }
     }
 
     public static RevAnnContent getInstance(Object o)
     {
         if (o instanceof RevAnnContent)
         {
             return (RevAnnContent)o;
         }
 
         if (o != null)
         {
             return new RevAnnContent(ASN1Sequence.getInstance(o));
         }
 
         return null;
     }
 
     public PKIStatus getStatus()
     {
         return ;
     }
 
     public CertId getCertId()
     {
         return ;
     }
 
     {
         return ;
     }
 
     {
         return ;
     }
 
     public Extensions getCrlDetails()
     {
         return ;
     }

    
 RevAnnContent ::= SEQUENCE {
       status              PKIStatus,
       certId              CertId,
       willBeRevokedAt     GeneralizedTime,
       badSinceDate        GeneralizedTime,
       crlDetails          Extensions  OPTIONAL
        -- extra CRL details (e.g., crl number, reason, location, etc.)
 }
 

Returns:
a basic ASN.1 object representation.
 
     public ASN1Primitive toASN1Primitive()
     {
         ASN1EncodableVector v = new ASN1EncodableVector();
 
         v.add();
         v.add();
         v.add();
         v.add();
 
         if ( != null)
         {
             v.add();
         }
        return new DERSequence(v);
    }
New to GrepCode? Check out our FAQ X