|
@@ -44,6 +44,9 @@ public class KeyFileParseUtils {
|
|
|
String expireDate = properties.getProperty("ExpireDate");
|
|
|
String users = properties.getProperty("Users");
|
|
|
Sign sign = JsonUtils.jsonStringToBean(signJsonStr, Sign.class);
|
|
|
+ if (!Objects.deepEquals(ServerUtils.getDeviceId(),serverID)) {
|
|
|
+ throw new BackendRuntimeException("The key file signature is invalid.");
|
|
|
+ }
|
|
|
if (!(Objects.deepEquals(sign.getServerID(),serverID)
|
|
|
&& Objects.deepEquals(sign.getLicenseDate(),licenseDate)
|
|
|
&& Objects.deepEquals(sign.getExpireDate(),expireDate)
|