0

ドキュメントにこのスニペットがあるサービスを使用する必要があります。

...構成された STS URL を v1.3 プロダクション エンド ポイントに変更し、STS バインディングの AlgorithmSuite を SecurityAlgorithmSuite.Basic256Sha256Rsa15 に変更する更新プログラムをリリースする必要がある場合があります。

リクエストの方法は次のとおりです。

IService service = new Service(new URL(getServiceWSDL())).getWS2007FederationHttpBindingIService();

((WSBindingProvider) service).getRequestContext().put(CERTIFICATE_PROPERTY, getCertificate());
((WSBindingProvider) service).getRequestContext().put(PRIVATEKEY_PROPERTY, getPrivateKey());
((WSBindingProvider) service).getRequestContext().put(STS_NAMESPACE, getSTSNamespace());
((WSBindingProvider) service).getRequestContext().put(STS_PORT_NAME, getSTSPortName());
((WSBindingProvider) service).getRequestContext().put(STS_SERVICE_NAME, getSTSServiceName());
((WSBindingProvider) service).getRequestContext().put(STS_ENDPOINT, getSTSEndpoint());
((WSBindingProvider) service).getRequestContext().put(STS_WSDL_LOCATION, getSTSWDSLLocation());

service.operation(...);

要求が実行されると、最初に STS で認証され、次に実際の要求が実行されます。リクエストの STS 部分の AlgorithmSuite を変更するにはどうすればよいですか?

STS の WSDL で宣言しようとしましたが、その WSDL を使用してリクエストが実際に何かをロードするとは思いません。

4

1 に答える 1