Interface MetaReader

    • 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