@ -42,17 +42,23 @@ public class LwM2MServerSecurityConfig {
@ApiModelProperty(position=8,value="Server Public Key for 'Security' mode (DTLS): RPK or X509. Format: base64 encoded",example="MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEAZ0pSaGKHk/GrDaUDnQZpeEdGwX7m3Ws+U/kiVat\n"+
@ApiModelProperty(position=9,value="Bootstrap Server Account Timeout (If the value is set to 0, or if this resource is not instantiated, the Bootstrap-Server Account lifetime is infinite.)",example="0",readOnly=true)
@ApiModelProperty(position=9,value="Server Public Key for 'Security' mode (DTLS): X509. Format: base64 encoded",example="MMIICODCCAd6gAwIBAgIUI88U1zowOdrxDK/dOV+36gJxI2MwCgYIKoZIzj0EAwIwejELMAkGA1UEBhMCVUs\n"+
@ApiModelProperty(position=10,value="Bootstrap Server Account Timeout (If the value is set to 0, or if this resource is not instantiated, the Bootstrap-Server Account lifetime is infinite.)",example="0",readOnly=true)
IntegerbootstrapServerAccountTimeout=0;
/** Config -> ObjectId = 1 'LwM2M Server' */
@ApiModelProperty(position=10,value="Specify the lifetime of the registration in seconds.",example="300",readOnly=true)
@ApiModelProperty(position=11,value="Specify the lifetime of the registration in seconds.",example="300",readOnly=true)
privateIntegerlifetime=300;
@ApiModelProperty(position=11,value="The default value the LwM2M Client should use for the Minimum Period of an Observation in the absence of this parameter being included in an Observation. "+
@ApiModelProperty(position=12,value="The default value the LwM2M Client should use for the Minimum Period of an Observation in the absence of this parameter being included in an Observation. "+
"If this Resource doesn’t exist, the default value is 0.",example="1",readOnly=true)
privateIntegerdefaultMinPeriod=1;
/** ResourceID=6 'Notification Storing When Disabled or Offline' */
@ApiModelProperty(position=12,value="If true, the LwM2M Client stores “Notify” operations to the LwM2M Server while the LwM2M Server account is disabled or the LwM2M Client is offline. After the LwM2M Server account is enabled or the LwM2M Client is online, the LwM2M Client reports the stored “Notify” operations to the Server. "+
@ApiModelProperty(position=13,value="If true, the LwM2M Client stores “Notify” operations to the LwM2M Server while the LwM2M Server account is disabled or the LwM2M Client is offline. After the LwM2M Server account is enabled or the LwM2M Client is online, the LwM2M Client reports the stored “Notify” operations to the Server. "+
"If false, the LwM2M Client discards all the “Notify” operations or temporarily disables the Observe function while the LwM2M Server is disabled or the LwM2M Client is offline. "+
"The default value is true.",example="true",readOnly=true)
thrownewDeviceCredentialsValidationException(server+" X509 public key must be in standard [RFC7250] and then encoded to Base64 format!");
thrownewDeviceCredentialsValidationException(server+" X509 certificate must be in DER-encoded X509v3 format and support only EC algorithm and then encoded to Base64 format!");