且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

允许将RSA v1.5密钥传输算法用于WildFly/JBossWS/CXF/WSS4J堆栈

更新时间:2021-11-08 07:11:33

仅当拦截器的动作中包含WSHandlerConstants.ENCRYPT动作时,才应用此设置.

This setting is only applied if the WSHandlerConstants.ENCRYPT action is included in the actions for the interceptor.

例如:

Map<String, Object> inProps = new HashMap<>();
inProps.put(WSHandlerConstants.ALLOW_RSA15_KEY_TRANSPORT_ALGORITHM, "true");
inProps.put(WSHandlerConstants.ACTION, 
    WSHandlerConstants.ENCRYPT + " " +
    WSHandlerConstants.SIGNATURE);
WSS4JInInterceptor wss4JInInterceptor = new WSS4JInInterceptor(inProps);