winget-cli

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

Signature.cs (694B)


      1 // Copyright (c) Microsoft Corporation.
      2 // Licensed under the MIT License.
      3 
      4 namespace WinGetSourceCreator.Model
      5 {
      6     public class Signature
      7     {
      8         // Full path of the certificate used to sign the package and installers
      9         public string CertFile { get; set; } = string.Empty;
     10 
     11         public string? Password { get; set; }
     12 
     13         // The publisher for the AppxPackage Identity Name property.
     14         public string? Publisher { get; set; }
     15 
     16         internal void Validate()
     17         {
     18             if (string.IsNullOrEmpty(this.CertFile))
     19             {
     20                 throw new ArgumentNullException(nameof(this.CertFile));
     21             }
     22         }
     23     }
     24 }