Exemple #1
0
 public void UpdateSignerVerification(OneSpanSign.Sdk.PackageId packageId, String roleId,
                                      SignerVerification signerVerification)
 {
     OneSpanSign.API.Verification verification =
         new SignerVerificationConverter(signerVerification).ToAPISignerVerification();
     signerVerificationService.UpdateSignerVerification(packageId, roleId, verification);
 }
Exemple #2
0
        public void BuildsSignerVerificationWithBasicInformation()
        {
            OneSpanSign.Sdk.SignerVerification verification = SignerVerificationBuilder.NewSignerVerification("PROVIDER1")
                                                              .WithPayload("HJKs2H7UvtFDUi73GswE")
                                                              .Build();

            Assert.AreEqual("PROVIDER1", verification.TypeId);
            Assert.AreEqual("HJKs2H7UvtFDUi73GswE", verification.Payload);
        }
Exemple #3
0
        public SignerVerification Build()
        {
            Asserts.NotEmptyOrNull(typeId, "No TypeId set for this signer verification!");

            SignerVerification result = new SignerVerification(typeId);

            result.Payload = payload;

            return(result);
        }
        public SignerVerification ToSDKSignerVerification()
        {
            if (apiSignerVerification == null)
            {
                return(sdkSignerVerification);
            }

            SignerVerification result = SignerVerificationBuilder.NewSignerVerification(apiSignerVerification.TypeId)
                                        .WithPayload(apiSignerVerification.Payload)
                                        .Build();

            return(result);
        }
 public SignerVerificationConverter(SignerVerification signerVerification)
 {
     this.sdkSignerVerification = signerVerification;
 }