/**
  * Verify a CMS signature without embedded content, and requiring external certificates to be
  * validated.
  *
  * @param signature the CMS signature to verify.
  * @param data the content to verify the signature against, or null of the content is embedded in
  *     the signature.
  * @param certificateProvider Optionally, a certificate provider for obtaining the chain of
  *     certificate for verifying the signatures. If null, certificat should all be embedded in the
  *     signature.
  * @return a the result of the verification.
  * @throws GeneralSecurityException on error.
  */
 public CMSSignedDataVerified cmsVerify(
     byte[] signature, byte[] data, CertificateProvider certificateProvider)
     throws GeneralSecurityException {
   return cmsSignedDataVerifier.verify(signature, data, certificateProvider);
 }
 /**
  * Verify a CMS signature without embedded content but containing all the certificate required for
  * validation.
  *
  * @param signature the CMS signature to verify.
  * @param data the content to verify the signature against, or null of the content is embedded in
  *     the signature.
  * @return a the result of the verification.
  * @throws GeneralSecurityException on error.
  */
 public CMSSignedDataVerified cmsVerify(byte[] signature, byte[] data)
     throws GeneralSecurityException {
   return cmsSignedDataVerifier.verify(signature, data);
 }