Class 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.
    • Constructor Detail

      • SigningInformationUtil

        public SigningInformationUtil()
    • 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."