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