/** Mark certificate chain as trusted. */ public void trustCertificateChain(List trustedChain) { if (trustedCerts == null) { trustedCerts = new ArrayList(untrustedCerts.size()); } trustedCerts.add(trustedChain); untrustedCerts.remove(trustedChain); if (untrustedCerts.isEmpty()) { untrustedCerts = null; } }
/** * Get a FileArchive handle to a named Jar file or directory within this archive. * * @param path Name of Jar file or directory to get. * @return A FileArchive object representing new archive, null if not found. * @exception IOException if we failed to get top of file archive. */ public FileArchive getFileArchive(String path) { if (".".equals(path)) { return archive; } if (archives == null) { archives = new ArrayList(); } try { Archive a = new Archive(archive, path, archives.size() + 1); archives.add(a); return a; } catch (IOException io) { // TBD, Where to log this return null; } }