Package dev.sigstore.tuf
Interface MetaReader
-
- All Known Subinterfaces:
MetaStore
- All Known Implementing Classes:
FileSystemTufStore,PassthroughCacheMetaStore
public interface MetaReaderInterface that defines reading meta from local storage.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <T extends SignedTufMeta<? extends TufMeta>>
java.util.Optional<T>readMeta(java.lang.String roleName, java.lang.Class<T> tClass)Return a named metadata item if there is any.
-
-
-
Method Detail
-
readMeta
<T extends SignedTufMeta<? extends TufMeta>> java.util.Optional<T> readMeta(java.lang.String roleName, java.lang.Class<T> tClass) throws java.io.IOException
Return a named metadata item if there is any.- Parameters:
roleName- the name of the role to load (root, timestamp, snapshot, targets, or a delegated target role)tClass- the class type- Returns:
- an instance of the signed metadata for the role if it was found
- Throws:
java.io.IOException- if an error occurs reading from the backing store
-
-