Interface MetaStore

    • 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.IOException
        Generic method to store one of the SignedTufMeta resources in the local tuf store.
        Parameters:
        roleName - the name of the role
        meta - 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.IOException
        Generic 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 throw IOException
        See Also:
        5.3.11