/** * Returns the created certificate. * * @return The created end-entity {@link X509Certificate} without issuer chain. */ public X509Certificate getCertificate() { lazyDownload(); return certChain.get(0); }
/** * Returns the created certificate and issuer chain. * * @return The created end-entity {@link X509Certificate} and issuer chain. The first * certificate is always the end-entity certificate, followed by the * intermediate certificates required to build a path to a trusted root. */ public List<X509Certificate> getCertificateChain() { lazyDownload(); return unmodifiableList(certChain); }
/** * Returns the created certificate and issuer chain. * * @return The created end-entity {@link X509Certificate} and issuer chain. The first * certificate is always the end-entity certificate, followed by the * intermediate certificates required to build a path to a trusted root. */ public List<X509Certificate> getCertificateChain() { lazyDownload(); return unmodifiableList(certChain); }
/** * Returns the created certificate. * * @return The created end-entity {@link X509Certificate} without issuer chain. */ public X509Certificate getCertificate() { lazyDownload(); return certChain.get(0); }
/** * Returns URLs to alternate certificate chains. * * @return Alternate certificate chains, or empty if there are none. */ public List<URL> getAlternates() { lazyDownload(); if (alternates != null) { return unmodifiableList(alternates); } else { return Collections.emptyList(); } }
/** * Returns URLs to alternate certificate chains. * * @return Alternate certificate chains, or empty if there are none. */ public List<URL> getAlternates() { lazyDownload(); if (alternates != null) { return unmodifiableList(alternates); } else { return Collections.emptyList(); } }