Bitzsoft.Integrations.ElectronicSignature.Junziqian
1.0.0-alpha.7
dotnet add package Bitzsoft.Integrations.ElectronicSignature.Junziqian --version 1.0.0-alpha.7
NuGet\Install-Package Bitzsoft.Integrations.ElectronicSignature.Junziqian -Version 1.0.0-alpha.7
<PackageReference Include="Bitzsoft.Integrations.ElectronicSignature.Junziqian" Version="1.0.0-alpha.7" />
<PackageVersion Include="Bitzsoft.Integrations.ElectronicSignature.Junziqian" Version="1.0.0-alpha.7" />
<PackageReference Include="Bitzsoft.Integrations.ElectronicSignature.Junziqian" />
paket add Bitzsoft.Integrations.ElectronicSignature.Junziqian --version 1.0.0-alpha.7
#r "nuget: Bitzsoft.Integrations.ElectronicSignature.Junziqian, 1.0.0-alpha.7"
#:package Bitzsoft.Integrations.ElectronicSignature.Junziqian@1.0.0-alpha.7
#addin nuget:?package=Bitzsoft.Integrations.ElectronicSignature.Junziqian&version=1.0.0-alpha.7&prerelease
#tool nuget:?package=Bitzsoft.Integrations.ElectronicSignature.Junziqian&version=1.0.0-alpha.7&prerelease
Bitzsoft.Integrations.ElectronicSignature.Junziqian
君子签电子签章集成。
功能特性
- 完整实现
IElectronicSignatureProvider接口:覆盖合同发起、详情、下载、签署 URL、撤销、印章、模板、回调验签全部统一方法 - partial class 扩展:通过部分类暴露君子签全部 API(签署、模板、用户、实名认证、证据链)
安装
dotnet add package Bitzsoft.Integrations.ElectronicSignature.Junziqian
<PackageReference Include="Bitzsoft.Integrations.ElectronicSignature.Junziqian" Version="*" />
认证方式
HMAC-SHA256 签名:SHA256Hex("nonce" + nonce + "ts" + ts + "app_key" + key + "app_secret" + secret)
配置
{
"Junziqian": {
"AppKey": "your-app-key",
"AppSecret": "your-app-secret",
"BaseUrl": "https://openapi.junziqian.com"
}
}
| 配置项 | 说明 | 默认值 |
|---|---|---|
AppKey |
应用标识 | — |
AppSecret |
应用密钥 | — |
BaseUrl |
API 基地址 | https://openapi.junziqian.com |
Timeout |
请求超时 | 30s |
HttpClientName |
命名 HttpClient | JunziqianElectronicSignatureProvider |
注册
// 方式一:委托配置
services.AddBitzsoftJunziqianElectronicSignature(options =>
{
options.AppKey = "your-app-key";
options.AppSecret = "your-app-secret";
});
// 方式二:IConfiguration
services.AddBitzsoftJunziqianElectronicSignature(configuration, "Junziqian");
第三方请求日志
内置 Bitzsoft.Integrations.RequestLogging 出站请求记录管道,默认 NullRequestLogStore 不持久化。
// ① 默认:启用记录管道但不持久化(日志丢弃)
services.AddBitzsoftJunziqianElectronicSignature(options => { /* ... */ });
// ② 持久化:宿主注册 IRequestLogStore 实现后,所有出站请求自动落库
services.AddRequestLogging<MyRequestLogStore>(opts =>
{
opts.MaxBodyLength = 8192;
opts.SensitiveFields.Add("mySecret");
});
services.AddBitzsoftJunziqianElectronicSignature(options => { /* ... */ });
回调验签
回调使用 form-encoded 格式,签名算法与请求签名一致。VerifyCallback 验证签名、时间戳新鲜度,使用 CryptographicOperations.FixedTimeEquals 防止时序攻击。
扩展方法(partial class)
除统一接口 12 个方法外,通过 partial class 暴露君子签全部 API:
- Signing — 发起签署、签署状态、签署页面、撤销、文件上传等
- Templates — 模板上传、创建、复制、删除、控件查询等
- Users — 个人/企业用户添加、同步、查询等
- Verification — 个人手机三要素、银行卡三/四要素、人脸识别、企业认证等
- Evidence — 证据链存储、检索、下载
依赖
Bitzsoft.Integrations.Compatibility:基础工具库
相关包
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 is compatible. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- Bitzsoft.Integrations.Compatibility (>= 1.0.0-alpha.7)
- Bitzsoft.Integrations.ElectronicSignature (>= 1.0.0-alpha.7)
- Bitzsoft.Integrations.RequestLogging (>= 1.0.0-alpha.7)
- Microsoft.Extensions.Configuration.Abstractions (>= 10.0.9)
- Microsoft.Extensions.Http (>= 10.0.9)
- Microsoft.Extensions.Options.ConfigurationExtensions (>= 10.0.9)
-
net5.0
- Bitzsoft.Integrations.Compatibility (>= 1.0.0-alpha.7)
- Bitzsoft.Integrations.ElectronicSignature (>= 1.0.0-alpha.7)
- Bitzsoft.Integrations.RequestLogging (>= 1.0.0-alpha.7)
- Microsoft.Extensions.Configuration.Abstractions (>= 5.0.0)
- Microsoft.Extensions.Http (>= 5.0.0)
- Microsoft.Extensions.Options.ConfigurationExtensions (>= 5.0.0)
-
net8.0
- Bitzsoft.Integrations.Compatibility (>= 1.0.0-alpha.7)
- Bitzsoft.Integrations.ElectronicSignature (>= 1.0.0-alpha.7)
- Bitzsoft.Integrations.RequestLogging (>= 1.0.0-alpha.7)
- Microsoft.Extensions.Configuration.Abstractions (>= 10.0.9)
- Microsoft.Extensions.Http (>= 10.0.9)
- Microsoft.Extensions.Options.ConfigurationExtensions (>= 10.0.9)
NuGet packages (2)
Showing the top 2 NuGet packages that depend on Bitzsoft.Integrations.ElectronicSignature.Junziqian:
| Package | Downloads |
|---|---|
|
Bitzsoft.Integrations.All
Bitzsoft 第三方集成聚合包 — 包含全部 Integration 模块 |
|
|
Bitzsoft.Integrations.ElectronicSignature.All
电子签章聚合包 — 包含君子签 / 法大大 / 爱签 / 上上签 / e签宝 / 契约锁 / 安证通 / 腾讯电子签全部实现 |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.0.0-alpha.7 | 56 | 6/16/2026 |
| 1.0.0-alpha.6 | 57 | 6/16/2026 |
| 1.0.0-alpha.5 | 59 | 6/14/2026 |
| 1.0.0-alpha.3 | 56 | 6/7/2026 |