public interface DeviceControlService { void rebootDevice(); } public class DeviceControlServiceImpl implements DeviceControlService { @Override public void rebootDevice() { } } Dictionary<String, Object> properties = new Hashtable<>(); properties.put("tr069todmt.security.permission", "device.control"); context.registerService(DeviceControlService.class.getName(), new DeviceControlServiceImpl(), properties); org.osgi.framework.security.framework=localhost:deny org.osgi.framework.security.permissions=\ device.control, \ other.permission org.osgi.service.http.secure.enabled=true org.osgi.service.http.secure.integrity=true org.osgi.service.http.secure.authentication-basic=true org.osgi.service.http.secure.authentication-oauth2=true org.osgi.service.http.port.secure=8443 org.osgi.service.http.secure.enabled=true org.osgi.service.http.secure.enabled.protocols=TLSv1.2 org.osgi.service.http.secure.enabled.ciphersuite=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384


上一篇:
下一篇:
切换中文