Launcher/LaunchServer/src/main/java/pro/gravit/launchserver/config/LaunchServerRuntimeConfig.java

20 lines
555 B
Java
Raw Normal View History

package pro.gravit.launchserver.config;
2019-04-12 00:58:45 +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;
public String oemUnlockKey;
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();
registerApiKey = SecurityHelper.randomStringToken();
2019-04-12 00:58:45 +03:00
}
}