code: public final CertPath generateCertPath(InputStream inStream,
          String encoding) throws CertificateException
      {
          return(certFacSpi.engineGenerateCertPath(inStream, encoding));
      }
docs: Generates a {@code CertPath} object and initializes it with
  the data read from the {@code InputStream} inStream. The data
  is assumed to be in the specified encoding. See
  the CertPath Encodings section in the <a href=
  "{@docRoot}openjdk-redirect.html?v=8&path=/technotes/guides/security/StandardNames.html#CertPathEncodings">
  Java Cryptography Architecture Standard Algorithm Name Documentation</a>
  for information about standard encoding names and their formats.
  
  @param inStream an {@code InputStream} containing the data
  @param encoding the encoding used for the data
  @return a {@code CertPath} initialized with the data from the
  {@code InputStream}
  @exception CertificateException if an exception occurs while decoding or
  the encoding requested is not supported
  @since 1.4