Package com.suse.coco.module.snpguest.io
Class VerificationDirectory
java.lang.Object
com.suse.coco.module.snpguest.io.VerificationDirectory
- All Implemented Interfaces:
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 Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Removes this verification directory and all the files contained within itbooleanCheck if the VCEK file existsbooleanCheck if the VLEK file exists
-
Field Details
-
REPORT_FILE
The report binary file- See Also:
-
VCEK_FILE
The VCEK file name- See Also:
-
VLEK_FILE
The VLEK file name- See Also:
-
path
-
-
Constructor Details
-
VerificationDirectory
VerificationDirectory(Path pathIn)
-
-
Method Details
-
getBasePath
-
getCertsPath
-
getReportPath
-
getVCEKPath
-
isVCEKAvailable
public boolean isVCEKAvailable()Check if the VCEK file exists- Returns:
- true if the file
VCEK_FILEexists.
-
isVLEKAvailable
public boolean isVLEKAvailable()Check if the VLEK file exists- Returns:
- true if the file
VLEK_FILEexists.
-
close
Removes this verification directory and all the files contained within it- Specified by:
closein interfaceAutoCloseable- Throws:
IOException- when the deletion fails.
-