@Test public void ldapUrl() throws Exception { String url = "ldap: SSLCertificateLoader sslCertificateDataLoader = new SSLCertificateLoader(); DSSException exception = assertThrows(DSSException.class, () -> sslCertificateDataLoader.getCertificates(url)); assertEquals("DSS framework only supports HTTP(S) certificate extraction", exception.getMessage()); }
public List<CertificateToken> getCertificates(final String urlString) throws DSSException { if (Protocol.isHttpUrl(urlString)) { Certificate[] httpGetCertificates = httpGetCertificates(urlString); return toCertificateTokens(httpGetCertificates); } throw new DSSException("DSS framework only supports HTTP(S) certificate extraction"); }
SSLCertificateLoader implements Serializable { public List<CertificateToken> getCertificates(final String urlString) throws DSSException { if (Protocol.isHttpUrl(urlString)) { Certificate[] httpGetCertificates = httpGetCertificates(urlString); return toCertificateTokens(httpGetCertificates); } throw new DSSException("DSS framework only supports HTTP(S) certificate extraction"); } }
SSLCertificateLoader implements Serializable { public List<CertificateToken> getCertificates(final String urlString) throws DSSException { if (Protocol.isHttpUrl(urlString)) { Certificate[] httpGetCertificates = httpGetCertificates(urlString); return toCertificateTokens(httpGetCertificates); } throw new DSSException("DSS framework only supports HTTP(S) certificate extraction"); }  }
SSLCertificateLoader implements Serializable { public List<CertificateToken> getCertificates(final String urlString) throws DSSException { if (Protocol.isHttpUrl(urlString)) { Certificate[] httpGetCertificates = httpGetCertificates(urlString); return toCertificateTokens(httpGetCertificates); } throw new DSSException("DSS framework only supports HTTP(S) certificate extraction"); }  void setCommonsDataLoader(CommonsDataLoader commonsDataLoader); List<CertificateToken> getCertificates(final String urlString); }
SSLCertificateLoader implements Serializable { public List<CertificateToken> getCertificates(final String urlString) throws DSSException { if (Protocol.isHttpUrl(urlString)) { Certificate[] httpGetCertificates = httpGetCertificates(urlString); return toCertificateTokens(httpGetCertificates); } throw new DSSException("DSS framework only supports HTTP(S) certificate extraction"); }  void setCommonsDataLoader(CommonsDataLoader commonsDataLoader); List<CertificateToken> getCertificates(final String urlString);  }