Package pro.gravit.launcher
Class LauncherEngine
- java.lang.Object
-
- pro.gravit.launcher.LauncherEngine
-
public class LauncherEngine extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static java.util.concurrent.atomic.AtomicBooleanIS_CLIENTstatic ClientModuleManagermodulesManagerjava.security.interfaces.ECPrivateKeyprivateKeyjava.security.interfaces.ECPublicKeypublicKeyRuntimeProviderruntimeProvider
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static voidcheckClass(java.lang.Class<?> clazz)static LauncherEngineclientInstance()static voidexitLauncher(int code)static java.security.cert.X509Certificate[]getCertificates(java.lang.Class<?> clazz)static voidinitGson(ClientModuleManager modulesManager)static voidmain(java.lang.String... args)voidreadKeys()voidstart(java.lang.String... args)static voidverifyNoAgent()
-
-
-
Field Detail
-
IS_CLIENT
public static final java.util.concurrent.atomic.AtomicBoolean IS_CLIENT
-
runtimeProvider
public RuntimeProvider runtimeProvider
-
publicKey
public java.security.interfaces.ECPublicKey publicKey
-
privateKey
public java.security.interfaces.ECPrivateKey privateKey
-
modulesManager
public static ClientModuleManager modulesManager
-
-
Method Detail
-
getCertificates
public static java.security.cert.X509Certificate[] getCertificates(java.lang.Class<?> clazz)
-
checkClass
public static void checkClass(java.lang.Class<?> clazz) throws java.lang.SecurityException- Throws:
java.lang.SecurityException
-
exitLauncher
public static void exitLauncher(int code)
-
main
public static void main(java.lang.String... args) throws java.lang.Throwable- Throws:
java.lang.Throwable
-
initGson
public static void initGson(ClientModuleManager modulesManager)
-
verifyNoAgent
public static void verifyNoAgent()
-
readKeys
public void readKeys() throws java.io.IOException, java.security.spec.InvalidKeySpecException- Throws:
java.io.IOExceptionjava.security.spec.InvalidKeySpecException
-
start
public void start(java.lang.String... args) throws java.lang.Throwable- Throws:
java.lang.Throwable
-
clientInstance
public static LauncherEngine clientInstance()
-
-