public Collection engineGenerateCertificates(InputStream inStream) throws CertificateException {
  java.security.cert.Certificate cert;
  List certs=new ArrayList();
  while ((cert=engineGenerateCertificate(inStream)) != null) {
    certs.add(cert);
  }
  return certs;
}

public Collection engineGenerateCertificates ( InputStream inStream ) throws CertificateException { java . security . cert . Certificate cert ; List certs = new ArrayList ( ) ; while ( ( cert = engineGenerateCertificate ( inStream ) ) != null ) { certs . add ( cert ) ; } return certs ; }
returns a ( possibly empty ) collection view of the certificates read from the given input stream instream .
