コード例 #1
0
 private void LoadSignatureData(ZipPackage package)
 {
     if (package.IsSigned)
     {
         PublisherSignature   = package.PublisherSignature;
         RepositorySignatures = package.RepositorySignatures;
         ValidationResult     = new ValidationResultViewModel(package.VerificationResult);
     }
 }
コード例 #2
0
        private async void LoadSignatureData(ZipPackage package)
        {
            if (package.IsSigned)
            {
                PublisherSignature   = package.PublisherSignature;
                RepositorySignatures = package.RepositorySignatures;

                await Task.Run(() => package.VerifySignatureAsync());

                ValidationResult = new ValidationResultViewModel(package.VerificationResult);
            }
        }
コード例 #3
0
        public async void LoadSignatureData(ISignaturePackage package)
        {
            if (package is null)
            {
                throw new ArgumentNullException(nameof(package));
            }
            if (package.IsSigned)
            {
                PublisherSignature  = package.PublisherSignature;
                RepositorySignature = package.RepositorySignature;
                IsSigned            = true;

                await Task.Run(() => package.VerifySignatureAsync());

                ValidationResult = new ValidationResultViewModel(package.VerificationResult);
            }
        }