mirror of
https://github.com/GravitLauncher/Launcher
synced 2025-01-10 17:49:40 +03:00
25 lines
888 B
Java
25 lines
888 B
Java
package pro.gravit.launchserver.config;
|
|
|
|
import pro.gravit.utils.helper.LogHelper;
|
|
import pro.gravit.utils.helper.SecurityHelper;
|
|
|
|
public class LaunchServerRuntimeConfig {
|
|
public String passwordEncryptKey;
|
|
public String oemUnlockKey;
|
|
public String registerApiKey;
|
|
public String clientCheckSecret;
|
|
|
|
public void verify() {
|
|
if (passwordEncryptKey == null) LogHelper.error("[RuntimeConfig] passwordEncryptKey must not be null");
|
|
if (clientCheckSecret == null) {
|
|
LogHelper.warning("[RuntimeConfig] clientCheckSecret must not be null");
|
|
clientCheckSecret = SecurityHelper.randomStringToken();
|
|
}
|
|
}
|
|
|
|
public void reset() {
|
|
passwordEncryptKey = SecurityHelper.randomStringToken();
|
|
registerApiKey = SecurityHelper.randomStringToken();
|
|
clientCheckSecret = SecurityHelper.randomStringToken();
|
|
}
|
|
}
|