Esempio n. 1
0
 public Bootstrap(Model.BootstrapServer item)
 {
     Url = item.Url;
     if (item.ServerCertificate != null)
     {
         ServerCertificate = new Certificate(item.ServerCertificate);
     }
     Model.PSKIdentity pskIdentity = item.GetPSKIdentity();
     if (pskIdentity != null)
     {
         ServerIdentity = new PSKIdentity(pskIdentity);
     }
 }
        public IActionResult GetBootstrapConfiguration()
        {
            IActionResult result;

            Model.BootstrapServer bootstrapServer = BusinessLogicFactory.Configuration.GetBootstrapServer(User.GetOrganisationID());
            if (bootstrapServer == null)
            {
                result = new NotFoundResult();
            }
            else
            {
                ServiceModels.Bootstrap response = new ServiceModels.Bootstrap(bootstrapServer);
                result = Request.GetObjectResult(response);
            }
            return(result);
        }