使用Apache CXF通过SecurityTokenReference和Thumprint identificator对SOAPMessage进行签名
是否有人能给出使用Apache CFX库(如WSSecSignature和Crypto类及相关数据结构)标记SOAPMessage的实现想法,以便最终实现如下内容:使用Apache CXF通过SecurityTokenReference和Thumprint identificator对SOAPMessage进行签名,soap,cxf,ws-security,Soap,Cxf,Ws Security,是否有人能给出使用Apache CFX库(如WSSecSignature和Crypto类及相关数据结构)标记SOAPMessage的实现想法,以便最终实现如下内容: <oas:Security> <oas:Signature> <xd:SignedInfo> <xd:CanonicalizationMethod Algorithm="http://www.w3.org/TR/2001/REC-x
<oas:Security>
<oas:Signature>
<xd:SignedInfo>
<xd:CanonicalizationMethod Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315"/>
<xd:SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1"/>
<xd:Reference URI="#[BodyID]">
<xd:Transforms>
<xd:Transform Algorithm="[TransformAlgorithm]"/>
</xd:Transforms>
<xd:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"/>
<xd:DigestValue>[DigestValue]</xd:DigestValue>
</xd:Reference>
<xd:Reference URI="#[ControlID]">
<xd:Transforms>
<xd:Transform Algorithm="[TransformAlgorithm]"/>
</xd:Transforms>
<xd:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"/>
<xd:DigestValue>[DigestValue]</xd:DigestValue>
</xd:Reference>
</xd:SignedInfo>
<xd:SignatureValue>[SignatureValue]</xd:SignatureValue>
<xd:KeyInfo>
<oas:SecurityTokenReference>
<oas:KeyIdentifier ValueType = "http://docs.oasis-open.org/wss/oasis-wss-soap-message-security-1.1#ThumbPrintSHA1">[Thumbprint]
</oas:KeyIdentifier>
</oas:SecurityTokenReference>
</xd:KeyInfo>
</oas:Signature>
</oas:Security>
[摘要价值]
[摘要价值]
[签名价值]
[指纹]
我有一个很好的资源,从那里我可以找到实现SOAPMessage叹息的方法
提前谢谢各位,
西缅