Package dev.sigstore.tuf
Interface TargetReader
-
- All Known Subinterfaces:
TargetStore
- All Known Implementing Classes:
FileSystemTufStore
public interface TargetReader
Interface that defines reading targets from local storage.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description byte[]
readTarget(java.lang.String targetName)
Reads a TUF target file from the local TUF store.
-
-
-
Method Detail
-
readTarget
byte[] readTarget(java.lang.String targetName) throws java.io.IOException
Reads a TUF target file from the local TUF store. Target names may include path elements and the storage engine should be consistent when handling writing and reading these.- Parameters:
targetName
- the name of the target file to read (e.g. ctfe.pub)- Returns:
- the content of the file as bytes
- Throws:
java.io.IOException
- if an error occurs
-
-