예제 #1
0
  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");
    }
  }
예제 #2
0
 public X509Credential(InputStream input) throws CredentialException {
   load(input);
 }