0

少しの WS-Security (XML 署名) を使用して単純な CXF クライアントとサーバーを作成しています。ここまでは順調ですね。

...
outProps.put("signatureParts",
             "{Element}{" + WSU_NS + "}Timestamp;"
             + "{Element}{http://schemas.xmlsoap.org/soap/envelope/}Body;"
             + "{}{http://www.w3.org/2005/08/addressing}ReplyTo;");
outProps.put("signatureAlgorithm", "http://www.w3.org/2000/09/xmldsig#rsa-sha1");
...
client.getOutInterceptors().add(new WSS4JOutInterceptor(outProps));

私が変更したいのは、正規化アルゴリズムEXCLUSIVE(C14N_EXCL_OMIT_COMMENTS aka " http://www.w3.org/2001/10/xml-exc-c14n# ") です。

4

1 に答える 1

0

デフォルトは、CXFの " http://www.w3.org/2001/10/xml-exc-c14n# " です。

署名 c14n アルゴリズムは、構成タグ「signatureC14nAlgorithm」を使用して変更できます (WSS4J 1.6.12 以降)。

参照: http://svn.apache.org/viewvc/webservices/wss4j/branches/1_6_x-fixes/src/main/java/org/apache/ws/security/handler/WSHandlerConstants.java?r1=1507331&r2=1513780

于 2014-02-05T14:23:54.773 に答える