Class SNPGuestWrapperVer07Below
java.lang.Object
com.suse.coco.module.snpguest.execution.AbstractSNPGuestWrapper
com.suse.coco.module.snpguest.execution.SNPGuestWrapperVer07Below
-
Field Summary
Fields inherited from class com.suse.coco.module.snpguest.execution.AbstractSNPGuestWrapper
logger, runtime, SNPGUEST, STDERR_MARKER, STDOUT_MARKER -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.SNPGuestWrapperVer07Below(Runtime runtimeIn) Constructor to specify a runtime. -
Method Summary
Modifier and TypeMethodDescriptionfetchVCEK(EpycGeneration generation, Path certsDir, Path report) Fetch the VCEK from the KDS.verifyAttestation(EpycGeneration generation, Path certsDir, Path report) Verify the attestation report.Methods inherited from class com.suse.coco.module.snpguest.execution.AbstractSNPGuestWrapper
displayReport, executeProcess, verifyCertificates
-
Constructor Details
-
SNPGuestWrapperVer07Below
public SNPGuestWrapperVer07Below()Default constructor. -
SNPGuestWrapperVer07Below
Constructor to specify a runtime. For unit testing.- Parameters:
runtimeIn- the runtime used to execute processes
-
-
Method Details
-
fetchVCEK
public ProcessOutput fetchVCEK(EpycGeneration generation, Path certsDir, Path report) throws ExecutionException Fetch the VCEK from the KDS.- Specified by:
fetchVCEKin classAbstractSNPGuestWrapper- Parameters:
generation- Specify the processor model for the certificate chain.certsDir- Directory to store the certificates inreport- Path to attestation report to use to request VCEK- Returns:
- the exit code of the fetching process
- Throws:
ExecutionException- when an error happens during the process execution
-
verifyAttestation
public ProcessOutput verifyAttestation(EpycGeneration generation, Path certsDir, Path report) throws ExecutionException Verify the attestation report.- Specified by:
verifyAttestationin classAbstractSNPGuestWrapper- Parameters:
generation- Specify the processor model for the certificate chain.certsDir- Path to directory containing VCEK.report- Path to attestation report to use for validation.- Returns:
- the exit code of the verification process
- Throws:
ExecutionException- when an error happens during the process execution
-