-
Notifications
You must be signed in to change notification settings - Fork 61
Expand file tree
/
Copy pathrim-details.html
More file actions
598 lines (590 loc) · 42.2 KB
/
Copy pathrim-details.html
File metadata and controls
598 lines (590 loc) · 42.2 KB
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
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org" xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout"
layout:decorate="~{layout}">
<head>
<link rel="stylesheet" th:href="@{/css/rim_details.css}" />
<section layout:fragment="script">
<script th:inline="javascript">
function eventSearch(txtInput) {
let input, filter, table, tr, td, i, txtValue, txtFound;
if (txtInput == null) {
input = document.getElementById("eventInput");
filter = input.value.toUpperCase();
} else {
filter = txtInput;
}
table = document.getElementById("eventLog");
tr = document.getElementsByTagName("tr");
for (i = 0; i < tr.length; i++) {
txtFound = true;
tds = tr[i].getElementsByTagName("td");
for (j = 0; j < tds.length; j++) {
td = tds[j];
txtValue = td.textContent || td.innerText;
if (txtValue.toUpperCase().indexOf(filter) > -1) {
txtFound = true;
break;
} else {
txtFound = false;
}
}
if (txtFound) {
tr[i].style.display = "";
} else {
tr[i].style.display = "none";
}
}
}
window.onload = function () {
let maxRows = 11;
let table = document.getElementById("eventLog");
let wrapper = table.parentNode;
let rowsInTable = table.rows.length;
let height = 0;
if (rowsInTable > maxRows) {
for (i = 0; i < maxRows; i++) {
height += table.rows[i].clientHeight;
}
wrapper.style.height = height + "px";
}
}
</script>
</section>
</head>
<body>
<h1 layout:fragment="pageHeaderTitle">
<th:block th:if="${initialData?.get('rimType') == 'Measurement'}">
<th:block th:if="${initialData.get('validationResult')} == 'PASS'">
TPM Log events
</th:block>
<th:block th:unless="${initialData.get('validationResult')} == 'PASS'">
Firmware Errors
<h3>TPM Log event(s) not found in the RIM DB</h3>
</th:block>
</th:block>
<th:block th:unless="${initialData?.get('rimType') == 'Measurement'}">
<span th:text="${initialData?.get('rimType')} + ' Reference Integrity Manifest'">
<a th:href="@{/HIRS_AttestationCAPortal/portal/reference-manifests/download?(id=${param.id})}">
<img th:src="@{/icons/ic_file_download_black_24dp.png}" alt="Download this RIM">
</a>
</span>
</th:block>
</h1>
<div id="rim-details-page" class="container-fluid" layout:fragment="content">
<th:block th:if="${initialData?.get('rimType') == 'Support'
|| (initialData.get('rimType') == 'Measurement' && initialData.get('validationResult') == 'PASS')}">
<div class="row">
<div class="col-md-1 col-md-offset-1"><span class="colHeader">Additonal RIM Info</span></div>
<div class="col col-md-8">
<th:block th:if="${#strings.isEmpty(initialData.get('associatedRim'))}">
<div class="component col col-md-10" style="color: red; padding-left: 20px">Associated RIM not found</div>
</th:block>
<th:block th:unless="${#strings.isEmpty(initialData.get('associatedRim'))}">
<a th:href="@{/HIRS_AttestationCAPortal/portal/rim-details?(id=${initialData.get('associatedRim')})}">
<span th:text="${initialData.get('associatedRim')}"></span>
</a>
<th:block th:if="${#maps.containsKey(initialData, 'hostName')}">
Device: <span th:text="${initialData.get('hostname')}"></span>
</th:block>
<th:block th:if="${#maps.containsKey(initialData, 'supportId')}">
Support: <a th:href="@{/HIRS_AttestationCAPortal/portal/rim-details?(id=${initialData.get('supportId')})}">
<span th:text="${initialData.get('supportFilename')}"></span></a>
</th:block>
</th:block>
</div><!--col-->
</div><!--row-->
<th:block th:if="${not initialData.get('swidBase')}">
<div class="row">
<div class="col-md-1 col-md-offset-1">
<span>RIM Type</span>
</div>
<div id="baseRim" class="col col-md-8">
<th:block th:if="${initialData.get('swidCorpus')}">SWID Corpus</th:block>
<th:block th:if="${initialData.get('swidPatch')}">SWID Patch</th:block>
<th:block th:if="${initialData.get('swidSupplemental')}">SWID Supplemental</th:block>
</div>
</div>
</th:block>
<div class="row">
<div class="accordion" id="eventAccordion">
<div class="accordion-item">
<h3 class="accordion-header" id="eventHeader">
<button class="accordion-button collapsed"
type="button"
data-bs-toggle="collapse"
data-bs-target="#eventCollapse"
aria-expanded="false"
aria-controls="eventCollapse">
Event Summary
</button>
</h3>
<div class="accordion-collapse collapse"
id="eventCollapse"
data-bs-parent="#eventAccordion"
aria-labelledby="eventHeader">
<div class="accordion-body">
<th:block th:with="coveredEvents=${initialData.get('coveredEvents')}">
<ul th:if="${#maps.containsValue(coveredEvents, true)}">
<li th:if="${initialData.get('rimType') == 'Support'}">
This Support RIM file covers the following critical items:
</li>
<li th:unless="${initialData.get('rimType') == 'Support'}">
This Event Log file covers the following critical items:
</li>
<ul>
<li th:if="${coveredEvents.get('crtm')
|| coveredEvents.get('firmwareBlob')
|| coveredEvents.get('bootManager')
|| coveredEvents.get('osLoader')
|| coveredEvents.get('osKernel')}">
PC Client Boot path
</li>
<ul>
<li th:if="${coveredEvents.get('crtm')}">Software Core Root of Trust for Measurement (SRTM)</li>
<li th:if="${not coveredEvents.get('crtm') and coveredEvents.get('firmwareBlob')}">Firmware modules</li>
<li th:if="${coveredEvents.get('bootManager')}">Boot Manager</li>
<li th:if="${coveredEvents.get('osLoader')}">OS Loader</li>
<li th:if="${coveredEvents.get('osKernel')}">OS Kernel</li>
</ul>
<li th:if="${coveredEvents.get('acpiTables')
|| coveredEvents.get('smbiosTables')
|| coveredEvents.get('gptTable')}">
Device Configuration
</li>
<ul>
<li th:if="${coveredEvents.get('acpiTables')}">ACPI Tables</li>
<li th:if="${coveredEvents.get('smbiosTables')}">SMBIOS Tables</li>
<li th:if="${coveredEvents.get('gptTable')}">GPT Table</li>
<li th:if="${coveredEvents.get('bootOrder')}">Boot Order</li>
</ul>
<li th:if="${coveredEvents.get('secureBoot')
|| coveredEvents.get('pk')
|| coveredEvents.get('kek')
|| coveredEvents.get('sigDb')
|| coveredEvents.get('forbiddenDbx')}">
Secure Boot Variables
</li>
<ul>
<li th:if="${coveredEvents.get('secureBoot')}">Secure Boot Enabled</li>
<li th:if="${coveredEvents.get('pk')}">Platform Key (PK)</li>
<li th:if="${coveredEvents.get('kek')}">Key Exchange Key (KEK)</li>
<li th:if="${coveredEvents.get('sigDb')}">Signature Database (db)</li>
<li th:if="${coveredEvents.get('forbiddenDbx')}">Forbidden Signatures Database (dbx)</li>
</ul>
</ul>
</ul>
<ul th:if="${#maps.containsValue(coveredEvents, false)}">
<li th:if="${initialData.get('rimType') == 'Support'}">
This Support RIM file does NOT cover the following critical items:
</li>
<li th:unless="${initialData.get('rimType') == 'Support'}">
This Event Log file does NOT cover the following critical items:
</li>
<ul>
<li th:if="${not coveredEvents.get('crtm')
|| not coveredEvents.get('bootManager')
|| not coveredEvents.get('osLoader')
|| not coveredEvents.get('osKernel')}">
PC Client Boot path
</li>
<ul>
<li th:if="${not coveredEvents.get('crtm')}">Software Core Root of Trust for Measurement (SRTM)</li>
<li th:if="${not coveredEvents.get('bootManager')}">Boot Manager</li>
<li th:if="${not coveredEvents.get('osLoader')}">OS Loader</li>
<li th:if="${not coveredEvents.get('osKernel')}">OS Kernel</li>
</ul>
<li th:if="${not coveredEvents.get('acpiTables')
|| not coveredEvents.get('smbiosTables')
|| not coveredEvents.get('gptTable')}">
Device Configuration
</li>
<ul>
<li th:if="${not coveredEvents.get('acpiTables')}">ACPI Tables</li>
<li th:if="${not coveredEvents.get('smbiosTables')}">SMBIOS Tables</li>
<li th:if="${not coveredEvents.get('gptTable')}">GPT Table</li>
<li th:if="${not coveredEvents.get('bootOrder')}">Boot Order</li>
</ul>
<li th:if="${not coveredEvents.get('secureBoot')
|| not coveredEvents.get('pk')
|| not coveredEvents.get('kek')
|| not coveredEvents.get('sigDb')
|| not coveredEvents.get('forbiddenDbx')}">
Secure Boot Variables
</li>
<ul>
<li th:if="${not coveredEvents.get('secureBoot')}">Secure Boot Enabled</li>
<li th:if="${not coveredEvents.get('pk')}">Platform Key (PK)</li>
<li th:if="${not coveredEvents.get('kek')}">Key Exchange Key (KEK)</li>
<li th:if="${not coveredEvents.get('sigDb')}">Signature Database (db)</li>
<li th:if="${not coveredEvents.get('forbiddenDbx')}">Forbidden Signatures Database (dbx)</li>
</ul>
</ul>
</ul>
</th:block>
</div>
</div>
</div><!--accordion item-->
</div><!--eventAccordion-->
<div id="tableDivTag">
<input type="text" id="eventInput" onkeyup="eventSearch(null)" placeholder="Search for text..." />
<br/>
<table id="eventLog">
<thead>
<tr class="header">
<th>Event #</th>
<th>PCR Index</th>
<th style="width: 20%">Event Type</th>
<th>Digest</th>
<th style="width: 50%">Event Content</th>
</tr>
</thead>
<tbody>
<th:block th:if="${not #lists.isEmpty(initialData.get('events'))}" th:each="event, eventStat : ${initialData.get('events')}">
<!--Only one of these <tr> elements will ever be present, so only one closing </tr> below-->
<tr style="background: tomato" th:if="${event.error}">
<tr th:unless="${event.error}">
<td style="width: 75px"><span th:text="${eventStat.count}"/></td>
<td class="pcrCell"><span th:text="${'PCR' + event.pcrIndex}"/></td>
<td><span th:text="${event.eventTypeStr}"/></td>
<td class="digestCell"><span th:text="${event.eventDigestStr}"/></td>
<td title="Event content">
<div style="height: 50px; overflow: auto">
<span th:text="${event.eventContentStr}">[none]</span>
</div>
</td>
</tr>
</th:block>
</tbody>
</table>
</div>
</div><!--row-->
<div class="col-md-a col-md-offset-1">
<span class="colHeader" th:text="${#lists.size(initialData.get('events'))} + ' entries'"/>
</div>
</th:block><!--Support RIM and validation passed measurements-->
<th:block th:if="${initialData?.get('rimType') == 'Measurement'
&& initialData.get('validationResult') == T(hirs.attestationca.persist.enums.AppraisalStatus.Status).FAIL}">
<div class="row rimrow">
<div class="col-md-1 offset-md-1"><span class="colRimHeader">Base/Support</span></div>
<div id="measurements" class="col col-md-7">
<div>Download Measurement:
<a th:href="@{/HIRS_AttestationCAPortal/portal/reference-manifests/download?(id=${param.id})}">
BIOS Measurements
</a>
</div>
<span th:text="${'Device: ' + initialData.get('hostName')}"
th:if="${#maps.containsKey(initialData, 'hostName')}"/>
<th:block th:if="${#maps.containsKey(initialData, 'tagId')}">
<div>Base:
<a th:href="@{/HIRS_AttestationCAPortal/portal/rim-details?(id=${initialData.associatedRim})}">
<span th:text="${initialData.associatedRim}"></span>
</a>
</div>
</th:block>
<th:block th:if="${#maps.containsKey(initialData, 'supportId')}">
<div>Support:
<a th:href="@{/HIRS_AttestationCAPortal/portal/rim-details?(id=${initialData.get('supportId')})}">
<span th:text="${initialData.get('supportId')}"></span>
</a>
</div>
</th:block>
</div><!--measurements-->
</div><!--row-->
<div class="row">
<div class="col col-md-8 offset-md-1" style="display: flex; background: gainsboro; margin-top: 1rem; padding: 1rem auto 1rem auto">
<div>TPM Events</div>
</div>
<th:block th:if="${not #lists.isEmpty(initialData.get('livelogEvents'))}"
th:each="lEvent, lEventStat : ${initialData.get('livelogEvents')}">
<div class="col col-md-8 offset-md-1" style="display: flex; background: #FF6164">
<div style="display: flex 1; font-weight: bold; margin: auto 1rem auto 1rem">
Failed Event Digest:
<br />
</div>
<div style="display: flex 2; margin: 2px auto 2px 25px">
<span class="mappedData">PCR Index: </span><span th:text="${lEvent.pcrIndex}"/>
<br />
<span class="mappedData">Digest: </span><span th:text="${lEvent.eventDigestStr}"/>
<br />
<span class="mappedData">Event Content: </span><span th:text="${lEvent.eventContentStr}"/>
</div>
</div>
<div class="col col-md-8 offset-md-1" style="display: flex; margin-bottom: 1rem; border-bottom: 1px ridge lightgray;">
<div class="accordion" th:id="${'eventAccordion' + lEventStat.count}">
<div class="accordion item">
<h3 class="accordion-header" th:id="${'eventHeader' + lEventStat.count}">
<button class="accordion-button collapsed"
type="button"
data-bs-toggle="collapse"
th:data-bs-target="${'#eventCollapse' + lEventStat.count}"
aria-expanded="false"
th:aria-controls="${'eventCollapse' + lEventStat.count}">
Expected Events from the RIM DB with the Event Type of
<span style="word-wrap: break-word" th:text="${lEvent.eventTypeString}"/>
</button>
</h3>
<div th:id="${'eventCollapse' + lEventStat.count}"
class="accordion-collapse collapse"
th:aria-labelledby="${'eventHeader' + lEventStat.count}"
th:data-bs-parent="${'#eventAccordion' + lEventStat.count}">
<div class="accordion-body">
<th:block th:each="mappedDigest : ${initialData.get('eventTypeMap')}">
<th:block th:if="${mappedDigest.key == lEvent.eventDigestStr}"
th:each="event : ${mappedDigest.value}">
<div class="mappedOverhead">
<div><span class="mappedData">PCR Index: </span><span th:text="${event.pcrIndex}"/></div>
<div><span class="mappedData">Digest: </span><span th:text="${event.eventDigestStr}"/></div>
<div><span class="mappedData">Event Content: </span><span th:text="${event.eventContentStr}"/></div>
</div>
</th:block>
</th:block>
</div><!--accordion body-->
</div><!--accordion collapse-->
</div><!--accordion item-->
</div><!--accordion-->
</div>
</th:block>
</div><!--row-->
</th:block><!--Failed measurements-->
<th:block th:if="${initialData.get('rimType') == 'Base'}">
<div class = "rimrow">
<div class="col-md-1 col-md-offset-1">
<span class="colHeader">Software Identity</span>
</div>
<div id="softwareIdentity" class="col col-md-8">
<span th:text="${'SWID Name: ' + initialData.get('swidName')}"/>
<span th:text="${'SWID Version: ' + initialData.get('swidVersion')}"/>
<span th:text="${'SWID Tag ID: ' + initialData.get('swidTagId')}"/>
<span th:text="${'SWID Tag Version: ' + initialData.get('swidTagVersion')}"/>
<span th:if="${initialData.get('swidCorpus')}">
SWID Corpus:
<img th:src="@{/icons/ic_checkbox_marked_circle_black_green_24dp.png}" alt="Check mark" title="Corpus Flag">
</span>
<span th:if="${initialData.get('swidPatch')}">
SWID Patch:
<img th:src="@{/icons/ic_checkbox_marked_circle_black_green_24dp.png}" alt="Check mark" title="Corpus Flag">
</span>
<span th:if="${initialData.get('swidSupplemental')}">
SWID Supplemental:
<img th:src="@{/icons/ic_checkbox_marked_circle_black_green_24dp.png}" alt="Check mark" title="Corpus Flag">
</span>
</div>
</div><!--softwareIdentity row-->
<div class="rimrow">
<div class="col-md-1 col-md-offset-1">
<span class="colHeader">Entity</span>
</div>
<div id="entity" class="col col-md-8">
<span th:text="${'Entity Name: ' + initialData.entityName}"/>
<span th:text="${'Entity Reg ID: ' + initialData.entityRegId}"
th:if="${not #strings.isEmpty(initialData.entityRegId)}"/>
<span th:text="${'Entity Role: ' + initialData.entityRole}"/>
<span th:text="${'Entity Thumbprint: ' + initialData.entityThumbprint}"/>
</div>
</div><!--entity row-->
<div class="rimrow">
<div class="col-md-1 col-md-offset-1">
<span class="colHeader">Link</span>
</div>
<div id="link" class="col col-md-8">
<span th:if="${not #strings.isEmpty(initialData.get('linkHref'))}">
<a th:href ="@{/HIRS_AttestationCAPortal/portal/rim-details?(id=${initialData.get('linkHrefLink')})}"
rel="${initialData.get('linkRel')}"
th:if="${not #strings.isEmpty(initialData.get('linkHrefLink'))}">
<span th:text="${initialData.get('linkHref')}"/>
</a>
<a th:href ="@{(${initialData.get('linkHrefLink')})}" rel="${initialData.get('linkRel')}"
th:if="${#strings.isEmpty(initialData.get('linkHrefLink'))}">
<span th:text="${initialData.get('linkHref')}"/>
</a>
</span>
<span th:text="${'Rel: ' + initialData.get('linkRel')}"/>
</div>
</div><!--link row-->
<div class="rimrow">
<div class="col-md-1 col-md-offset-1">
<span class="colHeader">Meta</span>
</div>
<div id="meta" class="col col-md-8">
<span th:text="${'Platform Manufacturer ID: ' + initialData.get('platformManufacturerId')}"/>
<span th:text="${'Platform Manufacturer: ' + initialData.get('platformManufacturer')}"/>
<span th:text="${'Platform Model: ' + initialData.get('platformModel')}"/>
<span th:text="${'Platform Version: ' + initialData.get('platformVersion')}"
th:if="${not #strings.isEmpty(initialData.get('platformVersion'))}"/>
<span th:text="${'Colloquial Version: ' + initialData.get('colloquialVersion')}"/>
<span th:text="${'Edition: ' + initialData.edition}"/>
<span th:text="${'Product: ' + initialData.get('product')}"/>
<span th:text="${'Revision: ' + initialData.get('revision')}"/>
<span th:text="${'Payload Type: ' + initialData.get('payloadType')}"
th:if="${not #strings.isEmpty(initialData.get('payloadType'))}"/>
<span th:text="${'Binding Spec: ' + initialData.get('bindingSpec')}"/>
<span th:text="${'Binding Spec Version: ' +initialData.get('bindingSpecVersion')}"/>
<span th:text="${'PC URI Global: ' + initialData.get('pcUriGlobal')}"
th:if="${not #strings.isEmpty(initialData.get('pcUriGlobal'))}"/>
<span th:text="${'Rim Link Hash: ' + initialData.get('rimLinkHash')}"
th:if="${#strings.isEmpty(initialData.get('rimLinkId'))}"/>
<th:block th:unless="${#strings.isEmpty(initialData.get('rimLinkId'))}">
<div>Rim Link Hash:
<a href="@{/HIRS_AttestationCAPortal/portal/rim-details?(id=${initialData.get('rimLinkId')})">
<span>${initialData.get('rimLinkHash')}</span>
</a>
</th:block>
<th:block th:if="${not #strings.isEmpty(initialData.get('rimLinkHash'))}">
<span>
<img th:src="@{passIcon}" title="SWID Tag exists"
th:if="${initialData.get('linkHashValid')}">
<img th:src="@{failIcon}" title="SWID Tag does not exist"
th:unless="${initialData.get('linkHashValid')}">
</span>
</th:block>
</div>
</div><!--meta row-->
<div class="rimrow">
<div class="col-md-1 col-md-offset-1">
<span class="colHeader">Payload/Support RIM(s)</span>
</div>
<div id="payload" class="col col-md-8">
<div id="directoryAccordion" class="accordion">
<div class="accordion-item border rounded mb-2 overflow-hidden">
<h4 id="directoryHeading" class="accordion-header">
<button class="accordion-button collapsed"
type="button"
data-bs-toggle="collapse"
data-bs-target="#directorycollapse"
aria-expanded="true"
aria-controls="directorycollapse">
Directory
</button>
</h4>
<div id="directorycollapse"
class="accordion-collapse collapse"
aria-labelledby="directoryHeading"
aria-expanded="true"
data-bs-parent="#directoryAccordion">
<div class="accordion-body">
<th:block th:if="${not #lists.isEmpty(initialData.get('swidFiles'))}">
<div id="filesAccordion" class="accordion">
<th:block th:each="resource, resourceStat : ${initialData.get('swidFiles')}">
<div class="accordion-item border rounded mb-2 overflow-hidden">
<h3 th:id="${'filesHeading' + resourceStat.count}" class="accordion-header">
<span data-toggle="tooltip" data-placement="top" title="Resource File">
<th:block th:if="${not #strings.isEmpty(initialData.get('associatedRim'))}">
<button class="accordion-button collapsed"
type="button"
data-bs-toggle="collapse"
th:data-bs-target="${'#filesCollapse' + resourceStat.count}"
aria-expanded="false"
th:aria-controls="${'filesCollapse' + resourceStat.count}">
<a th:href="@{/HIRS_AttestationCAPortal/portal/rim-details?(id=${initialData.get('associatedRim')})}">
<span th:text="${resource.name}">Associated RIM</span>
</a>
<th:block th:if="${not #strings.isEmpty(initialData.get('supportRimHashValid'))}">
<img th:src="@{/icons/ic_checkbox_marked_circle_black_green_24dp.png}" title="Support RIM hash valid"/>
</th:block>
<th:block th:unless="${not #strings.isEmpty(initialData.get('supportRimHashValid'))}">
<img th:src="@{/icons/ic_error_red_24dp.png}" title="Support RIM hash not valid!"/>
</th:block>
</button>
</th:block>
<th:block th:unless="${not #strings.isEmpty(initialData.get('associatedRim'))}">
<button class="accordion-button collapsed"
type="button"
data-bs-toggle="collapse"
th:data-bs-target="${'#filesCollapse' + resourceStat.count}"
aria-expanded="false"
th:aria-controls="${'filesCollapse' + resourceStat.count}">
<span th:text="${resource.name}">Associated RIM</span>
</button>
</th:block>
</span><!-- Tooltip -->
</h3>
<div th:id="${'filesCollapse' + resourceStat.count}"
class="accordion-collapse collapse"
th:aria-labelledby="${'filesHeading' + resourceStat.count}"
aria-expanded="true"
data-bs-parent="#filesAccordion">
<div class="accordion-body">
<span class="fieldHeader">File Size:</span>
<span class="fieldValue" th:text="${resource.size}">[none]</span><br/>
<span class="fieldHeader">Hash:</span>
<span class="fieldValue"
th:text="${resource.hashValue}" style="overflow-wrap: break-word">[none]</span><br/>
<th:block th:if="${not #strings.isEmpty(resource.rimFormat)}">
<span class="fieldHeader">RIM Format:</span>
<span class="fieldValue" th:text="${resource.rimFormat}"/><br/>
</th:block>
<th:block th:if="${not #strings.isEmpty(resource.rimType)}">
<span class="fieldHeader">RIM Type:</span>
<span class="fieldValue" th:text="${resource.rimType}"/><br/>
</th:block>
<th:block th:if="${not #strings.isEmpty(resource.rimUriGlobal)}">
<span class="fieldHeader">URI Global:</span>
<span class="fieldValue" th:text="${resource.rimUriGlobal}"/><br/>
</th:block>
<th:block th:if="${not #arrays.isEmpty(initialData.get('pcrList'))}">
<div th:id="${'pcrAccordion' + resourceStat.count}" class="accordion">
<div class="accordion-item border rounded mb-2 overflow-hidden">
<h3 class="accordion-header" th:id="${'pcrHeader' + resourceStat.count}">
<button class="accordion-button collapsed"
type="button"
data-bs-toggle="collapse"
th:data-bs-target="${'#pcrCollapse' + resourceStat.count}"
aria-expanded="false"
th:aria-controls="${'pcrCollapse' + resourceStat.count}">
Expected PCR Values
</button>
</h3>
<div class="accordion-collapse collapse"
th:id="${'pcrCollapse' + resourceStat.count}"
th:aria-labelledby="${'pcrHeader' + resourceStat.count}"
aria-expanded="false"
th:data-bs-parent="${'#pcrAccordion' + resourceStat.count}">
<div class="accordion-body">
<th:block th:each="pcr, pcrStat : ${initialData.get('pcrList')}">
<span th:text="${'PCR' + pcrStat.index + ': '}"/>
<span style="overflow-wrap: break-word" th:text="${pcr}"></span><br/>
</th:block>
</div><!--accordion body-->
</div><!--accordion collapse-->
</div><!--accordion item-->
</div><!--pcrAccordion-->
</th:block>
<th:block th:if="${#arrays.isEmpty(initialData.get('pcrList'))}
and not ${initialData.get('swidPatch')}
and not ${initialData.get('swidSupplemental')}">
<span style="color: red">PCR values not found.</span>
</th:block>
</div><!--accordion body-->
</div><!--accordion collapse-->
</div><!--accordion item-->
</th:block><!--for each-->
</div><!--filesAccordion-->
</th:block>
</div><!--accordion body-->
</div><!--directory collapse-->
</div><!--accordion item-->
</div><!--directoryAccordion-->
</div>
</div><!--payload row-->
<div class="rimrow">
<div class="col-md-1 col-md-offset-1">
<span class="colHeader">Signature</span>
</div>
<div id="signature" class="col col-md-8">
<span>Validity:
<img th:src="@{/icons/ic_checkbox_marked_circle_black_green_24dp.png}" title="Signature valid."
th:if="${initialData.get('signatureValid')}"/>
<img th:src="@{/icons/ic_error_red_24dp.png}" title="Signature not valid!"
th:unless="${initialData.get('signatureValid')}"/>
</span>
<a th:href="@{/HIRS_AttestationCAPortal/portal/certificate-details?id={id}&type=certificateauthority(id=${initialData.get('issuerID')})}"
th:if="${not #strings.isEmpty(initialData.get('issuerID'))}">
Signing certificate
</a>
<span th:text="${'Subject Key Identifier: ' + initialData.get('skID')}" th:if="${not #strings.isEmpty(initialData.get('skID'))}"/>
</div><!--signature-->
</div><!--signature row-->
</th:block><!--Base RIM-->
</div><!--content fragment-->
</body>
</html>