01: /*************************************************************************
02: * *
03: * EJBCA: The OpenSource Certificate Authority *
04: * *
05: * This software is free software; you can redistribute it and/or *
06: * modify it under the terms of the GNU Lesser General Public *
07: * License as published by the Free Software Foundation; either *
08: * version 2.1 of the License, or any later version. *
09: * *
10: * See terms of license at gnu.org. *
11: * *
12: *************************************************************************/package org.ejbca.core.model.ca.store;
13:
14: import java.io.Serializable;
15: import java.util.Date;
16:
17: /**
18: * Holds information about a CRL but not he CRL itself.
19: *
20: * @version $Id: CRLInfo.java,v 1.1 2006/01/17 20:31:52 anatom Exp $
21: */
22: public class CRLInfo implements Serializable {
23:
24: protected String subjectdn;
25: protected int lastcrlnumber;
26: protected Date this update;
27: protected Date nextupdate;
28:
29: public CRLInfo(String subjectdn, int lastcrlnumber,
30: long this update, long nextupdate) {
31: this .subjectdn = subjectdn;
32: this .lastcrlnumber = lastcrlnumber;
33: this .this update = new Date(this update);
34: this .nextupdate = new Date(nextupdate);
35: }
36:
37: public String getSubjectDN() {
38: return subjectdn;
39: }
40:
41: public int getLastCRLNumber() {
42: return lastcrlnumber;
43: }
44:
45: public Date getCreateDate() {
46: return this update;
47: }
48:
49: public Date getExpireDate() {
50: return nextupdate;
51: }
52:
53: }
|