コード例 #1
0
        public OneSpanSign.API.Verification ToAPISignerVerification()
        {
            if (sdkSignerVerification == null)
            {
                return(apiSignerVerification);
            }

            OneSpanSign.API.Verification result = new OneSpanSign.API.Verification();
            result.TypeId  = sdkSignerVerification.TypeId;
            result.Payload = sdkSignerVerification.Payload;
            return(result);
        }
コード例 #2
0
        internal void UpdateSignerVerification(PackageId packageId, string roleId, OneSpanSign.API.Verification verification)
        {
            string path = template.UrlFor(UrlTemplate.UPDATE_SIGNER_VERIFICATION_PATH)
                          .Replace("{packageId}", packageId.Id)
                          .Replace("{roleId}", roleId)
                          .Build();

            try
            {
                string json = JsonConvert.SerializeObject(verification, settings);
                restClient.Put(path, json);
            }
            catch (OssServerException e)
            {
                throw new OssServerException("Could not update signer verification." + " Exception: " + e.Message, e.ServerError, e);
            }
            catch (Exception e)
            {
                throw new OssException("Could not add update verification." + " Exception: " + e.Message, e);
            }
        }
コード例 #3
0
 public SignerVerificationConverter(OneSpanSign.API.Verification verification)
 {
     this.apiSignerVerification = verification;
 }