How does Java handle Certificates in Spring Ws?

空扰寡人 提交于 2019-12-02 18:18:56

问题


I need to consume a web Service using Spring Ws . I am using WEB service Template. I need to know that by only specifying the certificates in java keystore and trustore will the sending and receiving of certificates happen automatically? Also will the verification of server certificates happen automatically in Spring Ws if the keystore and trustore is configured properly or do I have to write some code?if not Ho do I send and receive certificates in Spring WS?


回答1:


Once you have selected the security interceptor you like to use. Assuming you have all the certificates handy, you can follow below links to set up the one or two way ssl for each of the security interceptor. This links are not most up to date but should get you started.

XwsSecurityInterceptor

Server Security Set up

Client Security Set up

Wss4jSecurityInteceptor

Client and Server Security Set up



来源:https://stackoverflow.com/questions/37608813/how-does-java-handle-certificates-in-spring-ws

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