Пример #1
0
 private static void configureKeys(MoveSCU main, CommandLine cl) {
   if (cl.hasOption("m")) {
     String[] keys = cl.getOptionValues("m");
     for (int i = 1; i < keys.length; i++, i++)
       main.addKey(CLIUtils.toTag(keys[i - 1]), StringUtils.split(keys[i], '/'));
   }
   if (cl.hasOption("L")) main.addLevel(cl.getOptionValue("L"));
   if (cl.hasOption("i")) main.setInputFilter(CLIUtils.toTags(cl.getOptionValues("i")));
 }
Пример #2
0
 public IDWithIssuer(String cx) {
   String[] ss = StringUtils.split(cx, '^');
   this.id = ss[0];
   this.setIssuer(ss.length > 3 ? new Issuer(ss[3], '&') : null);
 }