resolve darcs stupidity
[org.ibex.core.git] / src / org / bouncycastle / asn1 / x509 / V1TBSCertificateGenerator.java
index 9cb5745..c848234 100644 (file)
@@ -1,7 +1,6 @@
 package org.bouncycastle.asn1.x509;
 
 import org.bouncycastle.asn1.*;
-import org.bouncycastle.asn1.pkcs.*;
 
 /**
  * Generator for Version 1 TBSCertificateStructures.
@@ -25,7 +24,7 @@ public class V1TBSCertificateGenerator
     DERInteger              serialNumber;
     AlgorithmIdentifier     signature;
     X509Name                issuer;
-    DERUTCTime              startDate, endDate;
+    Time                    startDate, endDate;
     X509Name                subject;
     SubjectPublicKeyInfo    subjectPublicKeyInfo;
 
@@ -52,17 +51,29 @@ public class V1TBSCertificateGenerator
     }
 
     public void setStartDate(
-        DERUTCTime startDate)
+        Time startDate)
     {
         this.startDate = startDate;
     }
 
+    public void setStartDate(
+        DERUTCTime startDate)
+    {
+        this.startDate = new Time(startDate);
+    }
+
     public void setEndDate(
-        DERUTCTime endDate)
+        Time endDate)
     {
         this.endDate = endDate;
     }
 
+    public void setEndDate(
+        DERUTCTime endDate)
+    {
+        this.endDate = new Time(endDate);
+    }
+
     public void setSubject(
         X509Name    subject)
     {