Class VerificationDirectory

java.lang.Object
com.suse.coco.module.snpguest.io.VerificationDirectory
All Implemented Interfaces:
AutoCloseable

public class VerificationDirectory extends Object implements AutoCloseable
A class representing a verification directory, used to verify an attestation report. All files and the directory itself will be removed on resource clean up.
  • Field Details

  • Constructor Details

    • VerificationDirectory

      VerificationDirectory(Path pathIn)
  • Method Details

    • getBasePath

      public Path getBasePath()
    • getCertsPath

      public Path getCertsPath()
    • getReportPath

      public Path getReportPath()
    • getVCEKPath

      public Path getVCEKPath()
    • isVCEKAvailable

      public boolean isVCEKAvailable()
      Check if the VCEK file exists
      Returns:
      true if the file VCEK_FILE exists.
    • isVLEKAvailable

      public boolean isVLEKAvailable()
      Check if the VLEK file exists
      Returns:
      true if the file VLEK_FILE exists.
    • close

      public void close() throws IOException
      Removes this verification directory and all the files contained within it
      Specified by:
      close in interface AutoCloseable
      Throws:
      IOException - when the deletion fails.