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 uses the signing time for RPKI signed objects with fallback to notBefore if that is not present.
        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.