use of org.eclipse.leshan.server.impl.InMemorySecurityStore in project leshan by eclipse.
the class LeshanServerBuilderTest method create_server_with_securityStore_and_disable_secured_endpoint.
@Test
public void create_server_with_securityStore_and_disable_secured_endpoint() {
builder.setSecurityStore(new InMemorySecurityStore());
builder.disableSecuredEndpoint();
server = builder.build();
assertNull(server.getSecuredAddress());
assertNotNull(server.getUnsecuredAddress());
}
use of org.eclipse.leshan.server.impl.InMemorySecurityStore in project leshan by eclipse.
the class LeshanServerBuilderTest method create_server_with_securityStore_and_disable_unsecured_endpoint.
@Test
public void create_server_with_securityStore_and_disable_unsecured_endpoint() {
builder.setSecurityStore(new InMemorySecurityStore());
builder.disableUnsecuredEndpoint();
server = builder.build();
assertNotNull(server.getSecuredAddress());
assertNull(server.getUnsecuredAddress());
}
Aggregations