C# Class Signature.Core.PackageSigner

显示文件 Open project: MyGet/webhooks-sign-package Class Usage Examples

Public Methods

Method Description
SignPackage ( System.IO.Packaging.ZipPackage package, string keyPath, string keyPassword, string signedPackageId ) : bool
SignPackage ( string packagePath, string outputPath, string keyPath, string keyPassword, string signedPackageId ) : bool

Private Methods

Method Description
TrySignPackagePart ( PackagePart packagePart, string keyPath, string keyPassword, bool signedPackage ) : bool
TryUpdatePackageId ( System.IO.Packaging.ZipPackage package, string signedPackageId ) : void

Method Details

SignPackage() public method

public SignPackage ( System.IO.Packaging.ZipPackage package, string keyPath, string keyPassword, string signedPackageId ) : bool
package System.IO.Packaging.ZipPackage
keyPath string
keyPassword string
signedPackageId string
return bool

SignPackage() public method

public SignPackage ( string packagePath, string outputPath, string keyPath, string keyPassword, string signedPackageId ) : bool
packagePath string
outputPath string
keyPath string
keyPassword string
signedPackageId string
return bool