Search in sources :

Example 1 with NoSecBootstrapClientCredential

use of org.thingsboard.server.common.data.device.credentials.lwm2m.NoSecBootstrapClientCredential in project thingsboard by thingsboard.

the class AbstractLwM2MIntegrationTest method getDeviceCredentialsNoSec.

protected LwM2MDeviceCredentials getDeviceCredentialsNoSec(LwM2MClientCredential clientCredentials) {
    LwM2MDeviceCredentials credentials = new LwM2MDeviceCredentials();
    credentials.setClient(clientCredentials);
    LwM2MBootstrapClientCredentials bootstrapCredentials = new LwM2MBootstrapClientCredentials();
    NoSecBootstrapClientCredential serverCredentials = new NoSecBootstrapClientCredential();
    bootstrapCredentials.setBootstrapServer(serverCredentials);
    bootstrapCredentials.setLwm2mServer(serverCredentials);
    credentials.setBootstrap(bootstrapCredentials);
    return credentials;
}
Also used : LwM2MDeviceCredentials(org.thingsboard.server.common.data.device.credentials.lwm2m.LwM2MDeviceCredentials) LwM2MBootstrapClientCredentials(org.thingsboard.server.common.data.device.credentials.lwm2m.LwM2MBootstrapClientCredentials) NoSecBootstrapClientCredential(org.thingsboard.server.common.data.device.credentials.lwm2m.NoSecBootstrapClientCredential)

Aggregations

LwM2MBootstrapClientCredentials (org.thingsboard.server.common.data.device.credentials.lwm2m.LwM2MBootstrapClientCredentials)1 LwM2MDeviceCredentials (org.thingsboard.server.common.data.device.credentials.lwm2m.LwM2MDeviceCredentials)1 NoSecBootstrapClientCredential (org.thingsboard.server.common.data.device.credentials.lwm2m.NoSecBootstrapClientCredential)1