public X509Credential(String proxyFile) throws CredentialException { if (proxyFile == null) { throw new IllegalArgumentException("proxy file is null"); } logger.debug("Loading proxy file: " + proxyFile); try { InputStream in = new FileInputStream(proxyFile); load(in); } catch (FileNotFoundException f) { throw new CredentialException("proxy not found"); } }
public X509Credential(InputStream input) throws CredentialException { load(input); }