Class SNPGuestWrapperVer09Above

java.lang.Object
com.suse.coco.module.snpguest.execution.AbstractSNPGuestWrapper
com.suse.coco.module.snpguest.execution.SNPGuestWrapperVer09Above

public class SNPGuestWrapperVer09Above extends AbstractSNPGuestWrapper
  • Constructor Details

    • SNPGuestWrapperVer09Above

      public SNPGuestWrapperVer09Above()
      Default constructor.
    • SNPGuestWrapperVer09Above

      public SNPGuestWrapperVer09Above(Runtime runtimeIn)
      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:
      fetchVCEK in class AbstractSNPGuestWrapper
      Parameters:
      generation - Specify the processor model for the certificate chain.
      certsDir - Directory to store the certificates in
      report - 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:
      verifyAttestation in class AbstractSNPGuestWrapper
      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