1
2
3
4
5
6
7
8
9
10
11 package psiprobe.model.certificates;
12
13 import java.io.Serializable;
14 import java.time.Instant;
15 import java.util.Date;
16
17
18
19
20 public class Cert implements Serializable {
21
22
23 private static final long serialVersionUID = -727528588030989042L;
24
25
26 private String alias;
27
28
29 private String subjectDistinguishedName;
30
31
32 private String issuerDistinguishedName;
33
34
35 private Instant notBefore;
36
37
38 private Instant notAfter;
39
40
41
42
43
44
45 public String getSubjectDistinguishedName() {
46 return subjectDistinguishedName;
47 }
48
49
50
51
52
53
54 public void setSubjectDistinguishedName(String distinguishedName) {
55 this.subjectDistinguishedName = distinguishedName;
56 }
57
58
59
60
61
62
63 public Date getNotBefore() {
64 return notBefore == null ? null : Date.from(notBefore);
65 }
66
67
68
69
70
71
72 public void setNotBefore(Instant notBefore) {
73 this.notBefore = notBefore;
74 }
75
76
77
78
79
80
81 public Date getNotAfter() {
82 return notAfter == null ? null : Date.from(notAfter);
83 }
84
85
86
87
88
89
90 public void setNotAfter(Instant notAfter) {
91 this.notAfter = notAfter;
92 }
93
94
95
96
97
98
99 public String getIssuerDistinguishedName() {
100 return issuerDistinguishedName;
101 }
102
103
104
105
106
107
108 public void setIssuerDistinguishedName(String issuerDistinguishedName) {
109 this.issuerDistinguishedName = issuerDistinguishedName;
110 }
111
112
113
114
115
116
117 public String getAlias() {
118 return alias;
119 }
120
121
122
123
124
125
126 public void setAlias(String alias) {
127 this.alias = alias;
128 }
129
130 }