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: import org.ejbca.core.model.ra.UserDataVO;
18:
19: /**
20: * Value object class containing the data stored in the
21: * CertReqHistory Entity Bean. See constructor for details of its fields.
22: *
23: * @author Philip Vendil
24: * @version $Id: CertReqHistory.java,v 1.2 2006/01/26 14:17:58 anatom Exp $
25: * @see org.ejbca.core.ejb.ca.store.CertReqHistoryDataBean
26: */
27:
28: public class CertReqHistory implements Serializable {
29: private String fingerprint;
30: private String serialNumber;
31: private String issuerDN;
32: private String username;
33: private Date timestamp;
34: private UserDataVO userDataVO;
35:
36: /**
37: * @param fingerprint the PK of the certificate in the CertificateDataBean
38: * @param serialNumber of the certificate
39: * @param issuerDN DN of the CA issuing the certificate
40: * @param username of the user used in the certificate request.
41: * @param timestamp when the certicate was created.
42: * @param userDataVO the userdata used to create the certificate.
43: */
44: public CertReqHistory(String fingerprint, String serialNumber,
45: String issuerDN, String username, Date timestamp,
46: UserDataVO userDataVO) {
47: super ();
48: this .fingerprint = fingerprint;
49: this .serialNumber = serialNumber;
50: this .issuerDN = issuerDN;
51: this .username = username;
52: this .timestamp = timestamp;
53: this .userDataVO = userDataVO;
54: }
55:
56: /**
57: * @return Returns the issuerDN.
58: */
59: public String getFingerprint() {
60: return fingerprint;
61: }
62:
63: /**
64: * @return Returns the issuerDN.
65: */
66: public String getIssuerDN() {
67: return issuerDN;
68: }
69:
70: /**
71: * @return Returns the serialNumber.
72: */
73: public String getSerialNumber() {
74: return serialNumber;
75: }
76:
77: /**
78: * @return Returns the timestamp.
79: */
80: public Date getTimestamp() {
81: return timestamp;
82: }
83:
84: /**
85: * @return Returns the userAdminData.
86: */
87: public UserDataVO getUserDataVO() {
88: return userDataVO;
89: }
90:
91: /**
92: * @return Returns the username.
93: */
94: public String getUsername() {
95: return username;
96: }
97:
98: }
|