SOAP KeyInfo values

限于喜欢 提交于 2020-01-14 12:59:08

问题


I am trying to set up my Signature for a SOAP message. The only part I have left is to populate KeyInfo as such:

> <KeyInfo>
>       <wsse:SecurityTokenReference>
>           <wsse:KeyIdentifier ValueType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X509SubjectKeyIdentifier">XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX</wsse:KeyIdentifier>
>       </wsse:SecurityTokenReference>
>     </KeyInfo>

I have tried a number of methods, but I have been unable to achieve this using KeyInfo and KeyInfoFactory.

If this is the wrong way to do it, how do i make sure that KeyInfo is populated as partof my signature?

XMLSignature signature = sigFactory.newXMLSignature(signedinfo,keyinfo)

I am able to add in X509 info, but i do not see a way to add SecurityTokenReference

来源:https://stackoverflow.com/questions/27627648/soap-keyinfo-values

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!