/** * Generates a {@code CertPath} (a certificate chain) from the provided * {@code InputStream}. The default encoding scheme is applied. * * @param inStream * {@code InputStream} with encoded data. * @return a {@code CertPath} initialized from the provided data. * @throws CertificateException * if parsing problems are detected. */ public final CertPath generateCertPath(InputStream inStream) throws CertificateException { Iterator<String> it = getCertPathEncodings(); if (!it.hasNext()) { throw new CertificateException("There are no CertPath encodings"); } return spiImpl.engineGenerateCertPath(inStream, it.next()); }
/** * Generates a {@code CertPath} (a certificate chain) from the provided * {@code InputStream}. The default encoding scheme is applied. * * @param inStream * {@code InputStream} with encoded data. * @return a {@code CertPath} initialized from the provided data. * @throws CertificateException * if parsing problems are detected. */ public final CertPath generateCertPath(InputStream inStream) throws CertificateException { Iterator<String> it = getCertPathEncodings(); if (!it.hasNext()) { throw new CertificateException("There are no CertPath encodings"); } return spiImpl.engineGenerateCertPath(inStream, it.next()); }
/** * Generates a {@code CertPath} (a certificate chain) from the provided * {@code InputStream}. The default encoding scheme is applied. * * @param inStream * {@code InputStream} with encoded data. * @return a {@code CertPath} initialized from the provided data. * @throws CertificateException * if parsing problems are detected. */ public final CertPath generateCertPath(InputStream inStream) throws CertificateException { Iterator<String> it = getCertPathEncodings(); if (!it.hasNext()) { throw new CertificateException("There are no CertPath encodings"); } return spiImpl.engineGenerateCertPath(inStream, it.next()); }
/** * Generates a {@code CertPath} (a certificate chain) from the provided * {@code InputStream}. The default encoding scheme is applied. * * @param inStream * {@code InputStream} with encoded data. * @return a {@code CertPath} initialized from the provided data. * @throws CertificateException * if parsing problems are detected. */ public final CertPath generateCertPath(InputStream inStream) throws CertificateException { Iterator<String> it = getCertPathEncodings(); if (!it.hasNext()) { throw new CertificateException("There are no CertPath encodings"); } return spiImpl.engineGenerateCertPath(inStream, it.next()); }
/** * Generates a {@code CertPath} (a certificate chain) from the provided * {@code InputStream}. The default encoding scheme is applied. * * @param inStream * {@code InputStream} with encoded data. * @return a {@code CertPath} initialized from the provided data. * @throws CertificateException * if parsing problems are detected. */ public final CertPath generateCertPath(InputStream inStream) throws CertificateException { Iterator<String> it = getCertPathEncodings(); if (!it.hasNext()) { throw new CertificateException("There are no CertPath encodings"); } return spiImpl.engineGenerateCertPath(inStream, it.next()); }
/** * Generates a {@code CertPath} (a certificate chain) from the provided * {@code InputStream}. The default encoding scheme is applied. * * @param inStream * {@code InputStream} with encoded data. * @return a {@code CertPath} initialized from the provided data. * @throws CertificateException * if parsing problems are detected. */ public final CertPath generateCertPath(InputStream inStream) throws CertificateException { Iterator<String> it = getCertPathEncodings(); if (!it.hasNext()) { throw new CertificateException("There are no CertPath encodings"); } return spiImpl.engineGenerateCertPath(inStream, it.next()); }
/** * Generates a {@code CertPath} (a certificate chain) from the provided * {@code InputStream}. The default encoding scheme is applied. * * @param inStream * {@code InputStream} with encoded data. * @return a {@code CertPath} initialized from the provided data. * @throws CertificateException * if parsing problems are detected. */ public final CertPath generateCertPath(InputStream inStream) throws CertificateException { Iterator<String> it = getCertPathEncodings(); if (!it.hasNext()) { throw new CertificateException("There are no CertPath encodings"); } return spiImpl.engineGenerateCertPath(inStream, it.next()); }