public List<VerificationOK> verify(List<VerificationOK> result) throws IOException, GeneralSecurityException {
  if (result == null)   result=new ArrayList<>();
  while (pkcs7 != null) {
    result.addAll(verifySignature());
  }
  return result;
}

public List < VerificationOK > verify ( List < VerificationOK > result ) throws IOException , GeneralSecurityException { if ( result == null ) result = new ArrayList < > ( ) ; while ( pkcs7 != null ) { result . addAll ( verifySignature ( ) ) ; } return result ; }
verifies all the document - level timestamps and all the signatures in the document .
