Package dev.sigstore.tuf
Interface MetaStore
-
- All Superinterfaces:
MetaReader
- All Known Implementing Classes:
FileSystemTufStore,PassthroughCacheMetaStore
public interface MetaStore extends MetaReader
Interface that defines a mutable meta store functionality.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidclearMeta(java.lang.String role)Generic method to remove meta, useful when keys rotated in root.java.lang.StringgetIdentifier()A generic string for identifying the local store in debug messages.voidwriteMeta(java.lang.String roleName, SignedTufMeta<? extends TufMeta> meta)Generic method to store one of theSignedTufMetaresources in the local tuf store.-
Methods inherited from interface dev.sigstore.tuf.MetaReader
readMeta
-
-
-
-
Method Detail
-
getIdentifier
java.lang.String getIdentifier()
A generic string for identifying the local store in debug messages. A file system based implementation might return the path being used for storage, while an in-memory store may just return something like 'in-memory'.
-
writeMeta
void writeMeta(java.lang.String roleName, SignedTufMeta<? extends TufMeta> meta) throws java.io.IOExceptionGeneric method to store one of theSignedTufMetaresources in the local tuf store.- Parameters:
roleName- the name of the rolemeta- the metadata to store- Throws:
java.io.IOException- if writing the resource causes an IO error
-
clearMeta
void clearMeta(java.lang.String role) throws java.io.IOExceptionGeneric method to remove meta, useful when keys rotated in root. Deletion is not optional, implementers must ensure meta is removed from the storage medium.- Throws:
java.io.IOException- implementations that read/write IO to clear the data may throwIOException- See Also:
- 5.3.11
-
-