Interface TargetReader

  • All Known Subinterfaces:
    TargetStore
    All Known Implementing Classes:
    FileSystemTufStore

    public interface TargetReader
    Interface that defines reading targets from local storage.
    • 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