mirror of
https://github.com/nsacyber/HIRS.git
synced 2025-03-12 07:24:06 +00:00
CertificatesUsed not working properly with RIM
This commit is contained in:
parent
bd06340448
commit
15810bb442
@ -105,12 +105,8 @@ public class SupplyChainValidation extends ArchivableEntity {
|
|||||||
this.certificatesUsed = new ArrayList<>();
|
this.certificatesUsed = new ArrayList<>();
|
||||||
this.rimId = "";
|
this.rimId = "";
|
||||||
for (ArchivableEntity ae : certificatesUsed) {
|
for (ArchivableEntity ae : certificatesUsed) {
|
||||||
if (ae instanceof ReferenceManifest rm) {
|
if (ae instanceof BaseReferenceManifest rm) {
|
||||||
if (rm.isBase()) {
|
|
||||||
this.rimId = rm.getId().toString();
|
this.rimId = rm.getId().toString();
|
||||||
} else {
|
|
||||||
this.rimId = rm.getAssociatedRim().toString();
|
|
||||||
}
|
|
||||||
break;
|
break;
|
||||||
} else if (ae instanceof Certificate) {
|
} else if (ae instanceof Certificate) {
|
||||||
this.certificatesUsed.add((Certificate) ae);
|
this.certificatesUsed.add((Certificate) ae);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user