Package jp.go.aist.sot.api

Examples of jp.go.aist.sot.api.SOTProxyKeeperClient


        String RealPath = this.getServletContext().getRealPath("/");

        page = rq.getParameter("page");

        SOTProxyKeeperClient spkc = new SOTProxyKeeperClient();

        res.setContentType("text/html; charset=UTF-8");

        if (spkc.check(dn)) {
          if (page == null || page.equals("")) {
            getServletContext().getRequestDispatcher(RUN_JSP_PATH)
                .forward(rq, res);
          } else if (page.equals("run") || page.equals("result")) {
            String command = cmd.concat(" ") + rq.getParameter("command");
View Full Code Here


    ArrayList list    = new ArrayList();
    String File_Path    = null;
    String dbText      = null;
    boolean check_flg    = true;
    File file        = null;
    SOTProxyKeeperClient spk = new SOTProxyKeeperClient();

    if (spk.check(dn)) {
      System.out.println("cheked cert");
      System.out.println("for " + dn);
      dbText = spk.get(dn);

      if (dbText == null || dbText.equals("")) {
        check_flg = false;
      } else {
        file = writeDbTextTempFile(dbText);
View Full Code Here

  if(args.length != 1) {
      System.err.println("testCheck subject_DN");
      return;
  }

  SOTProxyKeeperClient pkc = new SOTProxyKeeperClient();
  String dn = args[0];

  System.out.println(pkc.check(dn));
    } catch (Exception e) {
      e.printStackTrace();
    }
  }
View Full Code Here

  if(args.length != 1) {
      System.err.println("testCheck subject_DN");
      return;
  }

  SOTProxyKeeperClient pkc = new SOTProxyKeeperClient();

  BufferedReader reader = new BufferedReader(new FileReader(args[0]));
  StringBuffer sb = new StringBuffer("");
  int c;
  while((c = reader.read()) >= 0 ) {
      sb.append((char)c);
  }
  String proxy_str = sb.toString();

  System.out.println(pkc.put(proxy_str));
    } catch (Exception e) {
      e.printStackTrace();
    }
  }
View Full Code Here

    }
      }
  }

    try {
  SOTProxyKeeperClient pkc = new SOTProxyKeeperClient();
  String proxy_str = new String();
  /* check and get */
  if(pkc.check(dn)) {
      proxy_str = pkc.get(dn);

      if(proxy_str != null) {
    printResult(proxy_str);
      } else {
    System.err.println("Your Proxycert is null");
      }
  } else {
      System.out.println("check failed");
  }

  /* directory get */
  proxy_str = pkc.get(dn);
  if(proxy_str != null) {
      printResult(proxy_str);
  } else {
      System.err.println("Your Proxycert is null");
  }
View Full Code Here

  if(args.length != 1) {
      System.err.println("testCheck subject_DN");
      return;
  }

  SOTProxyKeeperClient pkc = new SOTProxyKeeperClient();
  String dn = args[0];

  System.out.println(pkc.existDN(dn));
    } catch (Exception e) {
      e.printStackTrace();
    }
  }
View Full Code Here

  if(args.length != 1) {
      System.err.println("testCheck subject_DN");
      return;
  }

  SOTProxyKeeperClient pkc = new SOTProxyKeeperClient();
  String dn = args[0];

  System.out.println(pkc.destroy(dn));
    } catch (Exception e) {
      e.printStackTrace();
    }
  }
View Full Code Here

TOP

Related Classes of jp.go.aist.sot.api.SOTProxyKeeperClient

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.