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"); } }
private static void finish() { roh.finish(); }
private static Exception error(Exception t) { return roh.error(t); }