code: public static BcCMSSignedDataVerified getCMSSignedDataVerified(CMSSignedData signedData,
          CertificateFactory factory)
      {
          BcCMSSignedDataVerified verifiedData = new BcCMSSignedDataVerified(signedData.getSignedContentTypeOID(),
              (signedData.getSignedContent() != null ? (byte[]) signedData.getSignedContent().getContent() : null));
  
          BcStoreUtils.addCertificatesToVerifiedData(signedData.getCertificates(), verifiedData, factory);
          return verifiedData;
      }
docs: Create a new {@link org.xwiki.crypto.signer.param.CMSSignedDataVerified} for the given signed data.
  
  The verified data is filled with the signed data content, content type, and certificates.
  
  @param signedData the signed data about to be verified.
  @param factory a certificate factory to be used for certificates conversion.
  @return a new verified signed data to be completed with the signature verifications.