mirror of
https://github.com/GravitLauncher/Launcher
synced 2024-11-16 03:59:14 +03:00
19 lines
555 B
Java
19 lines
555 B
Java
package pro.gravit.launchserver.config;
|
|
|
|
import pro.gravit.utils.helper.LogHelper;
|
|
import pro.gravit.utils.helper.SecurityHelper;
|
|
|
|
public class LaunchServerRuntimeConfig {
|
|
public String clientToken;
|
|
public String oemUnlockKey;
|
|
public String registerApiKey;
|
|
|
|
public void verify() {
|
|
if (clientToken == null) LogHelper.error("[RuntimeConfig] clientToken must not be null");
|
|
}
|
|
|
|
public void reset() {
|
|
clientToken = SecurityHelper.randomStringToken();
|
|
registerApiKey = SecurityHelper.randomStringToken();
|
|
}
|
|
}
|