Methods in net.i2p.util with parameters of type SocketTimeout |
protected void |
EepGet.doFetch(SocketTimeout timeout)
single fetch |
protected void |
SSLEepGet.doFetch(SocketTimeout timeout)
private static boolean addCert(KeyStore ks, String file) {
try {
InputStream fis = new FileInputStream(file);
CertificateFactory cf = CertificateFactory.getInstance("X.509");
X509Certificate cert = (X509Certificate)cf.generateCertificate(fis);
fis.close();
System.err.println("Adding cert, Issuer: " + cert.getIssuerX500Principal());
try {
cert.checkValidity();
} catch (CertificateExpiredException cee) {
System.err.println("Warning - expired cert: " + cee);
} catch (CertificateNotYetValidException cnyve) {
System.err.println("Warning - not yet valid cert: " + cnyve);
}
// use file name as alias
ks.setCertificateEntry(file, cert);
} catch (GeneralSecurityException gse) {
System.err.println("Read cert error: " + gse);
return false;
} catch (IOException ioe) {
System.err.println("Read cert error: " + ioe);
return false;
}
return true;
} |
protected void |
EepHead.doFetch(SocketTimeout timeout)
return true if the URL was completely retrieved |
protected void |
EepGet.sendRequest(SocketTimeout timeout)
|
protected void |
SSLEepGet.sendRequest(SocketTimeout timeout)
|