mirror of
https://github.com/nsacyber/HIRS.git
synced 2025-03-06 06:02:05 +00:00
Initial push. Minor changes that'll update the details page
This commit is contained in:
parent
24d81b9da2
commit
4dd6de1482
@ -15,6 +15,7 @@ import lombok.Setter;
|
||||
import java.util.LinkedList;
|
||||
import java.util.List;
|
||||
import java.util.Objects;
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* A component result is a DO to hold the status of a component validation status. This will
|
||||
@ -45,7 +46,8 @@ public class ComponentResult extends ArchivableEntity {
|
||||
@Setter
|
||||
private boolean failedValidation;
|
||||
private String certificateType;
|
||||
|
||||
@Setter
|
||||
private UUID deviceInfo;
|
||||
private String issuerDN;
|
||||
private String certificateSerialNumber;
|
||||
private String boardSerialNumber;
|
||||
|
@ -17,6 +17,7 @@ public class CertificateDetailsPageParams implements PageParams {
|
||||
|
||||
private String id;
|
||||
private String type;
|
||||
private String sessionId;
|
||||
|
||||
/**
|
||||
* Constructor to set ID Certificate Details URL parameters.
|
||||
@ -33,6 +34,7 @@ public class CertificateDetailsPageParams implements PageParams {
|
||||
public CertificateDetailsPageParams() {
|
||||
id = null;
|
||||
type = null;
|
||||
sessionId = null;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -26,10 +26,17 @@
|
||||
</a>
|
||||
</c:when>
|
||||
<c:when test="${param.type=='platform'}">
|
||||
Platform Certificate
|
||||
<a href="${portal}/certificate-request/platform-credentials/download?id=${param.id}">
|
||||
<img src="${icons}/ic_file_download_black_24dp.png" title="Download Certificate">
|
||||
</a>
|
||||
<c:choose>
|
||||
<c:when test="${param.sessionId==null}">
|
||||
Platform Certificate
|
||||
<a href="${portal}/certificate-request/platform-credentials/download?id=${param.id}">
|
||||
<img src="${icons}/ic_file_download_black_24dp.png" title="Download Certificate">
|
||||
</a>
|
||||
</c:when>
|
||||
<c:otherwise>
|
||||
Platform Component Comparison
|
||||
</c:otherwise>
|
||||
</c:choose>
|
||||
</c:when>
|
||||
<c:when test="${param.type=='issued'}">
|
||||
Issued Attestation Certificates
|
||||
|
@ -185,6 +185,7 @@
|
||||
var curValidation = full.validations[i];
|
||||
var curResult = curValidation.validationResult;
|
||||
var curMessage = curValidation.message;
|
||||
var session = full.provisionSessionId;
|
||||
|
||||
if (curValidation.validationType === validation_type) {
|
||||
var unknownStatus = '<img class="icon" src="${unknownIcon}" title="${unknownText}"/>';
|
||||
|
Loading…
x
Reference in New Issue
Block a user