2017-07-12 52 views
0

我有3.0.4版本中的Apache cxf框架簽名肥皂消息litle問題。我用wss4jOutInterceptor與配置apache cxf wss4j簽名方法dsa切換到rsa

<bean id="WSS4JOutInterceptor" class="sk.posam.risng.soa.mur.interceptor.security.WSS4JOutInterceptorCustom"> 
    <argument> 
     <map> 
      <entry key="action" value="Signature"/> 
      <entry key="user" value="posam_ssl"/> 
      <entry key="signatureKeyIdentifier" value="DirectReference"/> 
      <entry key="passwordCallbackRef"> 
       <ref component-id="passwordCallback"/> 
      </entry> 
      <!--tato property musi byt vyplnena inak sa nepusti podpisovanie sprav, avsak property su ulozene v cryptoHolder--> 
      <entry key="signaturePropFile" value="seeCryptoHolder.properties"/> 
     </map> 
    </argument> 
    <property name="securityEnabled" value="${security.enabled}"/> 
    <property name="cryptoHolder" ref="cryptoHolder"/> 
</bean> 

這裏是我的算法標籤

<ds:SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#dsa-sha1"/> 

,我想使用RSA算法,如何配置這部分,

坦克你。

回答

0

根據您要使用的散列函數,您可以選擇several RSA algorithms之一。
例如,http://www.w3.org/2000/09/xmldsig#rsa-sha1