2003/02/12 06:21:04
[org.ibex.core.git] / src / org / bouncycastle / asn1 / x509 / V1TBSCertificateGenerator.java
index 9cb5745..d2b3bfd 100644 (file)
@@ -25,7 +25,7 @@ public class V1TBSCertificateGenerator
     DERInteger              serialNumber;
     AlgorithmIdentifier     signature;
     X509Name                issuer;
-    DERUTCTime              startDate, endDate;
+    Time                    startDate, endDate;
     X509Name                subject;
     SubjectPublicKeyInfo    subjectPublicKeyInfo;
 
@@ -52,17 +52,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)
     {