node.js - 在 WSSecurityCert() 方法肥皂节点 js 中设置摘要算法
问题描述
我想在 WSNSecurityCert() 方法中为签名肥皂请求设置摘要算法,但未添加。如何将摘要算法添加到此方法中?
const security = new soap.WSSecurityCert(key, cert, '', {
hasTimeStamp: false,
signatureAlgorithm: 'http://www.w3.org/2001/04/xmldsig-more#rsa-sha256',
signatureTransformations: ['http://www.w3.org/2000/09/xmldsig#enveloped-signature'],
signerOptions: {
prefix: 'ds',
attrs: {
Id: 'SIG-B3AD48871E5A24444716260028630905',
'xmlns:ds': 'http://www.w3.org/2000/09/xmldsig#',
DigestMethodAlgorithm: "http://www.w3.org/2000/09/xmldsig#sha1"
},
existingPrefixes: {
wsse: 'http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd',
wsu: 'http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd'
}
},
});
解决方案
推荐阅读
- python - 从excel文件中读取一列并将其替换并写入下一列
- react-native-ios - 未知类型名称“RazorpayCheckout”;你的意思是“RNRazorpayCheckout”吗?
- sql - 从 oracle 11g 中的单列打印两个不同列中的数字和字符
- python - 将数据框附加到excel并覆盖某些部分?
- javascript - 将选定的选项文本绑定到输入框
- algorithm - 推导动态规划的递归公式
- python - 当网站上出现新消息特别时如何使用python selenium继续?
- r - 在 wordcloud(word, n, max.words = 100) 中:不能放在页面上。它不会被绘制
- c# - 将 C# 数据列的一部分转换为线性字符串
- python - 我的不和谐机器人不会发送欢迎消息,但正在阅读其他消息。我正在使用 discord.py