Package net.ripe.rpki.commons.crypto.cms
Class SigningInformationUtil
- java.lang.Object
-
- net.ripe.rpki.commons.crypto.cms.SigningInformationUtil
-
public class SigningInformationUtil extends Object
Extract signing time or binary signing time. Extensively tested via the test cases in BBNCMSConformanceTest that test this with CMS that is parsed using this utility.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSigningInformationUtil.SigningTimeResult
-
Constructor Summary
Constructors Constructor Description SigningInformationUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static SigningInformationUtil.SigningTimeResultextractSigningTime(ValidationResult validationResult, org.bouncycastle.cms.SignerInformation signer)Extract signing time from the signer information.
-
-
-
Method Detail
-
extractSigningTime
public static SigningInformationUtil.SigningTimeResult extractSigningTime(ValidationResult validationResult, org.bouncycastle.cms.SignerInformation signer)
Extract signing time from the signer information. Signing time is either provided in the signing-time [RFC5652] or binary-signing-time [RFC6019] attribute, or neither. As stated in RFC 6019 Section 4 [Security Considerations] "only one of these attributes SHOULD be present". [..] "However, if both of these attributes are present, they MUST provide the same date and time."
-
-