Class PvattestWorker

java.lang.Object
com.suse.coco.module.pvattest.PvattestWorker
All Implemented Interfaces:
AttestationWorker

public class PvattestWorker extends Object implements AttestationWorker
Worker class for verifying the reports with SNPGuest
  • Field Details

  • Constructor Details

    • PvattestWorker

      public PvattestWorker()
      Default constructor.
    • PvattestWorker

      PvattestWorker(PvattestWrapper pvattestWrapperIn)
      Constructor with explicit dependencies, for unit test only.
      Parameters:
      pvattestWrapperIn - the pvattest executor
  • Method Details

    • processRequest

      public boolean processRequest(org.apache.ibatis.session.SqlSession session, AttestationResult result)
      Description copied from interface: AttestationWorker
      Process the attestation request of a given attestation result.
      Specified by:
      processRequest in interface AttestationWorker
      Parameters:
      session - the active mybatis database session
      result - the attestation result to process.
      Returns:
      true if the processing succeeded, false otherwise.
    • processVerification

      public boolean processVerification(org.apache.ibatis.session.SqlSession session, AttestationResult result)
      Description copied from interface: AttestationWorker
      Process the attestation verification of a given attestation result.
      Specified by:
      processVerification in interface AttestationWorker
      Parameters:
      session - the active mybatis database session
      result - the attestation result to process.
      Returns:
      true if the processing succeeded, false otherwise.
    • appendError

      private void appendError(String message)
    • appendError

      private void appendError(String message, Exception ex)
    • appendSuccess

      private void appendSuccess(String message)
    • appendOutput

      private void appendOutput(String message, com.suse.common.io.process.ProcessOutput processOutput)
    • getProcessOutputDetails

      private static String getProcessOutputDetails(com.suse.common.io.process.ProcessOutput processOutput)