Class SignedObjectUtil
- java.lang.Object
-
- net.ripe.rpki.commons.crypto.util.SignedObjectUtil
-
public class SignedObjectUtil extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSignedObjectUtil.NoTimeParsedException
-
Constructor Summary
Constructors Constructor Description SignedObjectUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static org.joda.time.InstantgetFileCreationTime(URI uri, byte[] decoded)Extract the creation time from an object.
-
-
-
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 doesnot 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 objectdecoded- object bytes- Returns:
- the file creation time of the object
- Throws:
SignedObjectUtil.NoTimeParsedException- if creation time could not be extracted.
-
-