mirror of
https://github.com/nsacyber/HIRS.git
synced 2025-03-10 22:44:26 +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.rimId = "";
|
||||
for (ArchivableEntity ae : certificatesUsed) {
|
||||
if (ae instanceof ReferenceManifest rm) {
|
||||
if (rm.isBase()) {
|
||||
this.rimId = rm.getId().toString();
|
||||
} else {
|
||||
this.rimId = rm.getAssociatedRim().toString();
|
||||
}
|
||||
if (ae instanceof BaseReferenceManifest rm) {
|
||||
this.rimId = rm.getId().toString();
|
||||
break;
|
||||
} else if (ae instanceof Certificate) {
|
||||
this.certificatesUsed.add((Certificate) ae);
|
||||
|
Loading…
x
Reference in New Issue
Block a user