Beispiel #1
0
        public string GetSignString(string cert_sn, string str_to_sign)
        {
            SignStrOut result = SignString(new SingStrIn()
            {
                CertSn    = cert_sn,
                StrToSign = str_to_sign
            });

            return(result.Result.Signature);
        }
Beispiel #2
0
        public SignStrOut SignString(SingStrIn singStrIn)
        {
            SignStrOut result = new SignStrOut();

            try
            {
                result.Result = SignStr(singStrIn);
                result.error  = null;
            }
            catch (Exception ex)
            {
                result.Result        = null;
                result.error.Message = ex.Message;
                result.error.Code    = 60600;
            }
            return(result);
        }