-
Notifications
You must be signed in to change notification settings - Fork 0
/
authority_model.go
268 lines (267 loc) · 9.5 KB
/
authority_model.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
package authority
type TrustServiceStatusList struct {
Text string `xml:",chardata"`
Tsl string `xml:"tsl,attr"`
Ds string `xml:"ds,attr"`
Ecc string `xml:"ecc,attr"`
Tslx string `xml:"tslx,attr"`
Xades string `xml:"xades,attr"`
TSLTag string `xml:"TSLTag,attr"`
SchemeInformation struct {
Text string `xml:",chardata"`
TSLVersionIdentifier string `xml:"TSLVersionIdentifier"`
TSLSequenceNumber string `xml:"TSLSequenceNumber"`
TSLType string `xml:"TSLType"`
SchemeOperatorName struct {
Text string `xml:",chardata"`
Name struct {
Text string `xml:",chardata"`
Lang string `xml:"lang,attr"`
} `xml:"Name"`
} `xml:"SchemeOperatorName"`
SchemeOperatorAddress struct {
Text string `xml:",chardata"`
PostalAddresses struct {
Text string `xml:",chardata"`
PostalAddress []struct {
Text string `xml:",chardata"`
Lang string `xml:"lang,attr"`
StreetAddress string `xml:"StreetAddress"`
Locality string `xml:"Locality"`
StateOrProvince string `xml:"StateOrProvince"`
PostalCode string `xml:"PostalCode"`
CountryName string `xml:"CountryName"`
} `xml:"PostalAddress"`
} `xml:"PostalAddresses"`
ElectronicAddress struct {
Text string `xml:",chardata"`
URI string `xml:"URI"`
} `xml:"ElectronicAddress"`
} `xml:"SchemeOperatorAddress"`
SchemeName struct {
Text string `xml:",chardata"`
Name []struct {
Text string `xml:",chardata"`
Lang string `xml:"lang,attr"`
} `xml:"Name"`
} `xml:"SchemeName"`
SchemeInformationURI struct {
Text string `xml:",chardata"`
URI []struct {
Text string `xml:",chardata"`
Lang string `xml:"lang,attr"`
} `xml:"URI"`
} `xml:"SchemeInformationURI"`
StatusDeterminationApproach string `xml:"StatusDeterminationApproach"`
SchemeTypeCommunityRules struct {
Text string `xml:",chardata"`
URI []string `xml:"URI"`
} `xml:"SchemeTypeCommunityRules"`
SchemeTerritory string `xml:"SchemeTerritory"`
PolicyOrLegalNotice struct {
Text string `xml:",chardata"`
TSLLegalNotice []struct {
Text string `xml:",chardata"`
Lang string `xml:"lang,attr"`
} `xml:"TSLLegalNotice"`
} `xml:"PolicyOrLegalNotice"`
HistoricalInformationPeriod string `xml:"HistoricalInformationPeriod"`
ListIssueDateTime string `xml:"ListIssueDateTime"`
NextUpdate struct {
Text string `xml:",chardata"`
DateTime string `xml:"dateTime"`
} `xml:"NextUpdate"`
DistributionPoints struct {
Text string `xml:",chardata"`
URI string `xml:"URI"`
} `xml:"DistributionPoints"`
} `xml:"SchemeInformation"`
TrustServiceProviderList struct {
Text string `xml:",chardata"`
TrustServiceProvider []struct {
Text string `xml:",chardata"`
TSPInformation struct {
Text string `xml:",chardata"`
TSPName struct {
Text string `xml:",chardata"`
Name []struct {
Text string `xml:",chardata"`
Lang string `xml:"lang,attr"`
} `xml:"Name"`
} `xml:"TSPName"`
TSPTradeName struct {
Text string `xml:",chardata"`
Name []struct {
Text string `xml:",chardata"`
Lang string `xml:"lang,attr"`
} `xml:"Name"`
} `xml:"TSPTradeName"`
TSPAddress struct {
Text string `xml:",chardata"`
PostalAddresses struct {
Text string `xml:",chardata"`
PostalAddress []struct {
Text string `xml:",chardata"`
Lang string `xml:"lang,attr"`
StreetAddress string `xml:"StreetAddress"`
Locality string `xml:"Locality"`
StateOrProvince string `xml:"StateOrProvince"`
PostalCode string `xml:"PostalCode"`
CountryName string `xml:"CountryName"`
} `xml:"PostalAddress"`
} `xml:"PostalAddresses"`
ElectronicAddress struct {
Text string `xml:",chardata"`
URI string `xml:"URI"`
} `xml:"ElectronicAddress"`
} `xml:"TSPAddress"`
TSPInformationURI struct {
Text string `xml:",chardata"`
URI []struct {
Text string `xml:",chardata"`
Lang string `xml:"lang,attr"`
} `xml:"URI"`
} `xml:"TSPInformationURI"`
} `xml:"TSPInformation"`
TSPServices struct {
Text string `xml:",chardata"`
TSPService []struct {
Text string `xml:",chardata"`
ServiceInformation struct {
Text string `xml:",chardata"`
ServiceTypeIdentifier string `xml:"ServiceTypeIdentifier"`
ServiceName struct {
Text string `xml:",chardata"`
Name []struct {
Text string `xml:",chardata"`
Lang string `xml:"lang,attr"`
} `xml:"Name"`
} `xml:"ServiceName"`
ServiceDigitalIdentity struct {
Text string `xml:",chardata"`
DigitalId struct {
Text string `xml:",chardata"`
X509Certificate string `xml:"X509Certificate"`
} `xml:"DigitalId"`
} `xml:"ServiceDigitalIdentity"`
ServiceStatus string `xml:"ServiceStatus"`
StatusStartingTime string `xml:"StatusStartingTime"`
} `xml:"ServiceInformation"`
ServiceHistory struct {
Text string `xml:",chardata"`
ServiceHistoryInstance struct {
Text string `xml:",chardata"`
ServiceTypeIdentifier string `xml:"ServiceTypeIdentifier"`
ServiceName struct {
Text string `xml:",chardata"`
Name []struct {
Text string `xml:",chardata"`
Lang string `xml:"lang,attr"`
} `xml:"Name"`
} `xml:"ServiceName"`
ServiceDigitalIdentity struct {
Text string `xml:",chardata"`
DigitalId struct {
Text string `xml:",chardata"`
X509SubjectName string `xml:"X509SubjectName"`
} `xml:"DigitalId"`
} `xml:"ServiceDigitalIdentity"`
ServiceStatus string `xml:"ServiceStatus"`
StatusStartingTime string `xml:"StatusStartingTime"`
} `xml:"ServiceHistoryInstance"`
} `xml:"ServiceHistory"`
} `xml:"TSPService"`
} `xml:"TSPServices"`
} `xml:"TrustServiceProvider"`
} `xml:"TrustServiceProviderList"`
Signature struct {
Text string `xml:",chardata"`
ID string `xml:"Id,attr"`
Ds string `xml:"ds,attr"`
SignedInfo struct {
Text string `xml:",chardata"`
CanonicalizationMethod struct {
Text string `xml:",chardata"`
Algorithm string `xml:"Algorithm,attr"`
} `xml:"CanonicalizationMethod"`
SignatureMethod struct {
Text string `xml:",chardata"`
Algorithm string `xml:"Algorithm,attr"`
} `xml:"SignatureMethod"`
Reference []struct {
Text string `xml:",chardata"`
ID string `xml:"Id,attr"`
URI string `xml:"URI,attr"`
Type string `xml:"Type,attr"`
Transforms struct {
Text string `xml:",chardata"`
Transform []struct {
Text string `xml:",chardata"`
Algorithm string `xml:"Algorithm,attr"`
XPath string `xml:"XPath"`
} `xml:"Transform"`
} `xml:"Transforms"`
DigestMethod struct {
Text string `xml:",chardata"`
Algorithm string `xml:"Algorithm,attr"`
} `xml:"DigestMethod"`
DigestValue string `xml:"DigestValue"`
} `xml:"Reference"`
} `xml:"SignedInfo"`
SignatureValue struct {
Text string `xml:",chardata"`
ID string `xml:"Id,attr"`
} `xml:"SignatureValue"`
KeyInfo struct {
Text string `xml:",chardata"`
X509Data struct {
Text string `xml:",chardata"`
X509Certificate string `xml:"X509Certificate"`
} `xml:"X509Data"`
} `xml:"KeyInfo"`
Object struct {
Text string `xml:",chardata"`
QualifyingProperties struct {
Text string `xml:",chardata"`
Target string `xml:"Target,attr"`
Ds string `xml:"ds,attr"`
Xades string `xml:"xades,attr"`
SignedProperties struct {
Text string `xml:",chardata"`
ID string `xml:"Id,attr"`
SignedSignatureProperties struct {
Text string `xml:",chardata"`
SigningTime string `xml:"SigningTime"`
SigningCertificate struct {
Text string `xml:",chardata"`
Cert struct {
Text string `xml:",chardata"`
CertDigest struct {
Text string `xml:",chardata"`
DigestMethod struct {
Text string `xml:",chardata"`
Algorithm string `xml:"Algorithm,attr"`
} `xml:"DigestMethod"`
DigestValue string `xml:"DigestValue"`
} `xml:"CertDigest"`
IssuerSerial struct {
Text string `xml:",chardata"`
X509IssuerName string `xml:"X509IssuerName"`
X509SerialNumber string `xml:"X509SerialNumber"`
} `xml:"IssuerSerial"`
} `xml:"Cert"`
} `xml:"SigningCertificate"`
} `xml:"SignedSignatureProperties"`
SignedDataObjectProperties struct {
Text string `xml:",chardata"`
DataObjectFormat struct {
Text string `xml:",chardata"`
ObjectReference string `xml:"ObjectReference,attr"`
MimeType string `xml:"MimeType"`
} `xml:"DataObjectFormat"`
} `xml:"SignedDataObjectProperties"`
} `xml:"SignedProperties"`
} `xml:"QualifyingProperties"`
} `xml:"Object"`
} `xml:"Signature"`
}