2019-06-02 05:03:08 +03:00
|
|
|
package pro.gravit.launchserver.config;
|
2019-04-12 00:58:45 +03:00
|
|
|
|
2019-06-02 05:03:08 +03:00
|
|
|
import pro.gravit.utils.helper.LogHelper;
|
|
|
|
import pro.gravit.utils.helper.SecurityHelper;
|
2019-04-12 00:58:45 +03:00
|
|
|
|
|
|
|
public class LaunchServerRuntimeConfig {
|
|
|
|
public String clientToken;
|
2019-05-22 01:32:40 +03:00
|
|
|
public String oemUnlockKey;
|
2019-07-01 10:54:33 +03:00
|
|
|
public String registerApiKey;
|
2019-05-15 14:11:22 +03:00
|
|
|
|
|
|
|
public void verify() {
|
|
|
|
if (clientToken == null) LogHelper.error("[RuntimeConfig] clientToken must not be null");
|
2019-04-12 00:58:45 +03:00
|
|
|
}
|
2019-05-15 14:11:22 +03:00
|
|
|
|
|
|
|
public void reset() {
|
2019-04-12 00:58:45 +03:00
|
|
|
clientToken = SecurityHelper.randomStringToken();
|
2019-07-01 10:54:33 +03:00
|
|
|
registerApiKey = SecurityHelper.randomStringToken();
|
2019-04-12 00:58:45 +03:00
|
|
|
}
|
|
|
|
}
|