return acHostService.registerHost(acHost);
}
public static void refreshToken(boolean allowInsecurePolling)
{
final Token token = new Token(AC.getAcHost().getKey(), AC.getUser(), System.currentTimeMillis(), allowInsecurePolling);
final String jsonToken = Base64.encodeBase64String(token.toJson().toString().getBytes());
final String encryptedToken = Crypto.encryptAES(jsonToken);
getHttpContext().args.put(AC_TOKEN, encryptedToken);
}