Class LauncherEngine

java.lang.Object
pro.gravit.launcher.runtime.LauncherEngine

public class LauncherEngine extends Object
  • Field Details

    • clientParams

      public static pro.gravit.launcher.client.ClientParams clientParams
    • modulesManager

      public static pro.gravit.launcher.start.RuntimeModuleManager modulesManager
    • clientInstance

      public final boolean clientInstance
    • runtimeProvider

      public RuntimeProvider runtimeProvider
    • publicKey

      public ECPublicKey publicKey
    • privateKey

      public ECPrivateKey privateKey
    • basicRuntimeProvider

      public Class<? extends RuntimeProvider> basicRuntimeProvider
  • Method Details

    • getCertificates

      public static X509Certificate[] getCertificates(Class<?> clazz)
    • checkClass

      public static void checkClass(Class<?> clazz) throws SecurityException
      Throws:
      SecurityException
    • beforeExit

      public static void beforeExit(int code)
    • forceExit

      public static void forceExit(int code)
    • exitLauncher

      public static void exitLauncher(int code)
    • contains

      public static boolean contains(String[] array, String value)
    • main

      public static void main(String... args) throws Throwable
      Throws:
      Throwable
    • initGson

      public static void initGson(pro.gravit.launcher.start.RuntimeModuleManager modulesManager)
    • verifyNoAgent

      public static void verifyNoAgent()
    • initOffline

      public static pro.gravit.launcher.base.request.RequestService initOffline()
    • newInstance

      public static LauncherEngine newInstance(boolean clientInstance)
    • newInstance

      public static LauncherEngine newInstance(boolean clientInstance, Class<? extends RuntimeProvider> basicRuntimeProvider)
    • getClientPublicKey

      public ECPublicKey getClientPublicKey()
    • sign

      public byte[] sign(byte[] bytes)
    • readKeys

      public void readKeys() throws IOException, InvalidKeySpecException
      Throws:
      IOException
      InvalidKeySpecException
    • start

      public void start(String... args) throws Throwable
      Throws:
      Throwable