KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > ejbca > core > model > ca > store > CRLInfo


1 /*************************************************************************
2  * *
3  * EJBCA: The OpenSource Certificate Authority *
4  * *
5  * This software is free software; you can redistribute it and/or *
6  * modify it under the terms of the GNU Lesser General Public *
7  * License as published by the Free Software Foundation; either *
8  * version 2.1 of the License, or any later version. *
9  * *
10  * See terms of license at gnu.org. *
11  * *
12  *************************************************************************/

13  
14 package org.ejbca.core.model.ca.store;
15
16 import java.io.Serializable JavaDoc;
17 import java.util.Date JavaDoc;
18
19 /**
20  * Holds information about a CRL but not he CRL itself.
21  *
22  * @version $Id: CRLInfo.java,v 1.1 2006/01/17 20:31:52 anatom Exp $
23  */

24 public class CRLInfo implements Serializable JavaDoc {
25     
26     protected String JavaDoc subjectdn;
27     protected int lastcrlnumber;
28     protected Date JavaDoc thisupdate;
29     protected Date JavaDoc nextupdate;
30     
31     public CRLInfo(String JavaDoc subjectdn, int lastcrlnumber, long thisupdate, long nextupdate){
32       this.subjectdn = subjectdn;
33       this.lastcrlnumber = lastcrlnumber;
34       this.thisupdate = new Date JavaDoc(thisupdate);
35       this.nextupdate = new Date JavaDoc(nextupdate);
36     }
37     
38     public String JavaDoc getSubjectDN() {return subjectdn;}
39     public int getLastCRLNumber() { return lastcrlnumber; }
40     public Date JavaDoc getCreateDate() { return thisupdate; }
41     public Date JavaDoc getExpireDate() { return nextupdate; }
42     
43 }
44
Popular Tags