@ -26,7 +26,7 @@ public class LwM2MServerSecurityConfig implements Serializable {
@Schema(description="Server short Id. Used as link to associate server Object Instance. This identifier uniquely identifies each LwM2M Server configured for the LwM2M Client. "+
"This Resource MUST be set when the Bootstrap-Server Resource has a value of 'false'. "+
"The values ID:1 and ID:65534 values MUST NOT be used for identifying the LwM2M Server.",example="123",accessMode=Schema.AccessMode.READ_ONLY)
"The values ID:0 and ID:65535 values MUST NOT be used for identifying the LwM2M Server.",example="123",accessMode=Schema.AccessMode.READ_ONLY)
protectedIntegershortServerId=123;
/** Security -> ObjectId = 0 'LWM2M Security' */
@Schema(description="Is Bootstrap Server or Lwm2m Server. "+
thrownewInvalidConfigurationException("Specific ID:"+BOOTSTRAP.getId()+" and ID:"+NOT_USED_IDENTIFYING_LWM2M_SERVER.getId()+" values MUST NOT be used for identifying the LwM2M Server");
thrownewInvalidConfigurationException("Specific ID:"+NOT_USED_IDENTIFYING_LWM2M_SERVER_MIN.getId()+" and ID:"+NOT_USED_IDENTIFYING_LWM2M_SERVER_MAX.getId()+" values MUST NOT be used for identifying the LwM2M Server");
@ -342,19 +341,18 @@ public class DeviceProfileDataValidator extends AbstractHasOtaPackageValidator<D
thrownewDeviceCredentialsValidationException("Bootstrap config must not include \"Bootstrap Server\". \"Include Bootstrap Server updates\" is "+isBootstrapServerUpdateEnable+".");
thrownewDeviceCredentialsValidationException("LwM2M Server ShortServerId must be in range ["+PRIMARY_LWM2M_SERVER.getId()+" - "+LWM2M_SERVER_MAX.getId()+"]!");
}
}else{
thrownewDeviceCredentialsValidationException("LwM2M Server ShortServerId must not be null!");
@ -79,7 +78,7 @@ class DeviceProfileDataValidatorTest {
" }";
privatestaticfinalStringmsgErrorLwm2mRange="LwM2M Server ShortServerId must be in range ["+PRIMARY_LWM2M_SERVER.getId()+" - "+LWM2M_SERVER_MAX.getId()+"]!";
privatestaticfinalStringmsgErrorBsRange="Bootstrap Server ShortServerId must be in range ["+BOOTSTRAP.getId()+"]!";
privatestaticfinalStringmsgErrorBsRange="Bootstrap Server ShortServerId must be null!";
privatestaticfinalStringmsgErrorNotNull=" Server ShortServerId must not be null!";
privatestaticfinalStringhost="localhost";
privatestaticfinalStringhostBs="localhost";
@ -157,7 +156,7 @@ class DeviceProfileDataValidatorTest {