spring ws 使用请求证书来加密响应

spring ws use request certificate to encrypt response

我正在寻找等效于 Apache CXFs 配置值 "useReqSigCert"

使用此配置,用于加密响应的 public 密钥取自请求(在 BinarySecurityToken 中传输)。

有Spring WS的选项吗?

在更广泛的意义上,我正在寻找一种方法来从 SOAP 请求(启用 WS-Security,SoapBody 加密并签名)中提取 BinarySecurityToken (X509Certificate),然后加密 SOAP-Response (SoapBody)有了这个证书。

转换答案中的评论,在幕后,Spring Web 服务可以像 Apache CXF 一样使用 wss4j

请尝试设置配置 属性 securementEncryptionUser to useReqSigCert when configuring your response encryption. Please, consider read the relevant documentation.