Пример #1
0
 private static void start(InternalLoginToken token, String name, Object... args)
     throws Exception {
   String host;
   try {
     host = getClientHost();
   } catch (ServerNotActiveException e) {
     host = System.getProperty("org.opendrac.controller.primary", "localhost");
   }
   roh.start(name, host, args);
   // somehow equals on the token does not work
   if (token.isValid && internalToken.isValid && !token.token.contains(internalToken.token)) {
     log.warn("token        : " + internalToken);
     log.warn("internalToken: " + token);
     throw new Exception("Security exception, invalid internal login token");
   }
 }
Пример #2
0
 private static void finish() {
   roh.finish();
 }
Пример #3
0
 private static Exception error(Exception t) {
   return roh.error(t);
 }