Minor refactor

This commit is contained in:
Cyrus 2022-11-18 14:10:32 -05:00
parent daafe8b899
commit 7859ee213a
5 changed files with 10 additions and 10 deletions

View File

@ -1,4 +1,4 @@
package hirs.attestationca.portal.util;
package hirs.attestationca.validation;
import com.github.marandus.pciid.model.Device;
import com.github.marandus.pciid.model.Vendor;

View File

@ -1,4 +1,4 @@
package hirs.attestationca.portal.util;
package hirs.attestationca.validation;
import hirs.attestationca.entity.ReferenceManifest;
import hirs.attestationca.entity.certificate.CertificateAuthorityCredential;

View File

@ -3,14 +3,14 @@ package hirs.attestationca.validation;
import com.fasterxml.jackson.core.JsonFactory;
import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.ObjectMapper;
import hirs.attestationca.entity.SupplyChainValidation;
import hirs.attestationca.entity.certificate.EndorsementCredential;
import hirs.attestationca.entity.certificate.PlatformCredential;
import hirs.attestationca.entity.certificate.attributes.ComponentIdentifier;
import hirs.attestationca.entity.certificate.attributes.V2.ComponentIdentifierV2;
import hirs.data.persist.AppraisalStatus;
import hirs.data.persist.ArchivableEntity;
import hirs.data.persist.DeviceInfoReport;
import hirs.data.persist.SupplyChainValidation;
import hirs.data.persist.certificate.EndorsementCredential;
import hirs.data.persist.certificate.PlatformCredential;
import hirs.data.persist.certificate.attributes.ComponentIdentifier;
import hirs.data.persist.certificate.attributes.V2.ComponentIdentifierV2;
import hirs.data.persist.info.ComponentInfo;
import hirs.data.persist.info.HardwareInfo;
import org.apache.commons.codec.digest.DigestUtils;
@ -263,8 +263,7 @@ public final class SupplyChainCredentialValidator implements CredentialValidator
*/
@Override
public AppraisalStatus validatePlatformCredentialAttributes(
final P
latformCredential platformCredential,
final PlatformCredential platformCredential,
final DeviceInfoReport deviceInfoReport,
final EndorsementCredential endorsementCredential) {
final String baseErrorMessage = "Can't validate platform credential attributes without ";

View File

@ -18,7 +18,7 @@ import hirs.attestationca.service.ReferenceDigestValueService;
import hirs.attestationca.service.ReferenceManifestService;
import hirs.tpm.eventlog.TCGEventLog;
import hirs.tpm.eventlog.TpmPcrEvent;
import hirs.attestationca.portal.util.ReferenceManifestValidator;
import hirs.attestationca.validation.ReferenceManifestValidator;
import hirs.attestationca.validation.SupplyChainCredentialValidator;
import hirs.attestationca.validation.SupplyChainValidatorException;
import org.apache.logging.log4j.LogManager;

View File

@ -8,6 +8,7 @@ import hirs.attestationca.entity.certificate.IssuedAttestationCertificate;
import hirs.attestationca.entity.certificate.PlatformCredential;
import hirs.attestationca.entity.certificate.attributes.ComponentIdentifier;
import hirs.attestationca.entity.certificate.attributes.PlatformConfiguration;
import hirs.attestationca.validation.PciIds;
import hirs.utils.BouncyCastleUtils;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;