Class SignedObjectUtil


  • public class SignedObjectUtil
    extends Object
    • Constructor Detail

      • SignedObjectUtil

        public SignedObjectUtil()
    • Method Detail

      • getFileCreationTime

        public static org.joda.time.Instant getFileCreationTime​(URI uri,
                                                                byte[] decoded)
                                                         throws SignedObjectUtil.NoTimeParsedException
        Extract the creation time from an object. This does not yet follow the method described in https://datatracker.ietf.org/doc/draft-timbru-sidrops-publication-server-bcp/00/. It differs in that it uses the signing time for RPKI signed objects. This is a trade-off: * signing-time is more correct when multi-use EE certificates are present. * signing-time likely does not match the modification time of the CRL. This needs to be revisited in 2024.
        Parameters:
        uri - URL of the object
        decoded - object bytes
        Returns:
        the file creation time of the object
        Throws:
        SignedObjectUtil.NoTimeParsedException - if creation time could not be extracted.