問題タブ [wss4j]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票する
1 に答える
1421 参照

java - SOAPProcessingException を引き起こす Wss4jSecurityInterceptor を使用した PayloadRootQNameEndpointMapping

Wss4jSecurityInterceptor を使用した PayloadRootQNameEndpointMapping のために、以下の構成を使用しています

インターセプターが提供されていない場合、

それは正常に動作します。ただし、上記の行がアクティブな場合、つまりインターセプターが提供されている場合、エラーが発生します

何か問題がある場合、または Wss4jSecurityInterceptor で spring-ws PayloadRootQNameEndpointMapping を構成する適切な方法がある場合は共有してください

ありがとう

0 投票する
2 に答える
1418 参照

spring-ws - spring-ws-security 依存関係の競合

Wss4jSecurityInterceptorWeb サービスを署名で保護するために、spring-ws-security を使用したいと考えています。しかし、このシステムを動作不能にする依存関係の競合があります。spring-ws-security:2.1.2.RELEASEも動作しないようです。

この問題を解決する方法はありますか?

よろしくお願いします。

0 投票する
1 に答える
129 参照

wss4j - wss4j で PrivateKey を直接使用する

wss4j はマーリンとキーストアを使用します。java.security.PrivateKey を実装する暗号プロバイダーがありますが、マーリンもキーストアもありません。wss4j で java.security.PrivateKey のオブジェクトを使用するにはどうすればよいですか?

0 投票する
0 に答える
1013 参照

java - SpringWS で SOAP ヘッダーに Timetamp を追加する方法

SpringWS + Wss4j インターセプターを使用してタイムスタンプを追加するためのデフォルトのオプションは、ヘッダー内のセキュリティ要素内にタイムスタンプを追加することです。

ただし、Timestam 要素を Security 要素の外に配置したいと思います (以下を参照)。これは可能ですか?

春の設定は次のとおりです。

0 投票する
1 に答える
1286 参照

java - SOAP メッセージを SPRING WS の webServiceTemplate.sendSourceAndReceiveToResult に変換する方法

私のsoapUIで動作しているSOAPメッセージ呼び出しがあります

SOAP UI でこれを実行して Web サービスをテストすると、完全に正常に動作します。この SOAP メッセージをwebServiceTemplate.sendSourceAndReceiveToResult呼び出しで変換するのに苦労しています。私のコードにヘッダーメッセージを組み込むために。誰かがこれで私を助けることができますか?

クライアントコール:

webServiceTemplate.sendSourceAndReceiveToResult (URL、ソース、結果);

ソースパラメータにセキュリティ ヘッダーを含めることができないようです

0 投票する
1 に答える
845 参照

web-services - Implementing digital signature on Weblogic ServiceControl Client

Our application is a consumer of a web service that has asked us to implement digital signature (X.509 based) in our request SOAP header. We need to have in the header tags like <ds:SignedInfo>, <wsse:BinarySecurityToken>, <ds:CanonicalizationMethod>. It's actually a lot similar to the xml here.

Now, as a client we are not using clientgen. Nor is the server side willing to make this into a WS-Policy. I searched a lot in the Oracle documentation but it seems to end at the assumption that the server side needs to have this policy enforced to the web service. That can't happen. We can't use client side policy too because the examples I came across at Oracle's website seem to suggest that it only works for client code generated via clientgen while our code uses the ServiceControl.

Just today I came across WSS4J but I am not sure if that is the answer to what I am searching for. It certainly seems plausible but will it work in my scenario (considering that we have Weblogic ServiceController) while all examples for WSS4J seem to use Axis.

I have spent last few days searching on this and I am getting to the point of frustration. Please help!

Thanks, Ak

0 投票する
0 に答える
829 参照

java - wss4j を使用して X509 証明書を挿入する場合の例外

wss4j を使用して SOAP ヘッダーで X509 に署名すると、例外が発生します。私のコードはここにあります:

wss4j でデフォルトの crypto.properties を使用するだけです。ただし、例外が存在します。

この例外を解決する方法を知りたいです。ご協力いただきありがとうございます!

0 投票する
1 に答える
625 参照

axis2 - ( Axis2 / Rampart ) BSP コンプライアンスを無効にするか、削除します

BSP コンプライアンスを無効にしようとしています (要素を含むメッセージは必要ありません)。

私は試してみましたが、役に立ちませんでした:

Axis2/Rampart で送信する SOAP メッセージから要素を削除する方法を知っている人はいますか?

0 投票する
3 に答える
3104 参照

java - WSS4J および PCKS11 キーストア

WSS4J で PKCS11 キーストーン (スマート カード) を使用しようとしています。スマート カードからキーストーンを作成するためのコードと、ファイルからキーストーンを使用して WSS4J で SOAP メッセージを歌うための別のコードがあります。問題は、それらを「マージ」する方法です。

PKCS11 キーストア:

WSS4J 署名コード:

最後に、sender.properties ファイル: