ffang commented on PR #1660:
URL: https://github.com/apache/cxf/pull/1660#issuecomment-1919507106

   > Hi @ffang ,
   > 
   > I continued with the work on this feature. Work is almost done, I'm stuck 
on a following problem:
   > 
   > When I try to customize the alg. suite for he stax server, wss4j is 
validating the runtime usage of algorithms with assertions. Runtime is using 
customized values, assertion contains the default values. Solution is simple, 
the assertion has to be customized as well. (I did the same for the non-stax 
case) Unfortunately I can not find a correct way of changing such parameter.
   > 
   > If you look into this line -
   > 
   > 
https://github.com/apache/cxf/blob/1bf24e1193c0decffcc3b34328b1c41a035201fe/rt/ws/security/src/main/java/org/apache/cxf/ws/security/wss4j/PolicyBasedWSS4JStaxInInterceptor.java#L436
   > 
   > You can see `operationPolicies`, this variable is containing the assertion 
values and it seems, that it is the unserialized policy.xml. If I can access 
the AlgorithSuiteType, I can customize it by one line.
   > 
   > Do you have an idea, how to access this reference?
   > 
   > I'm adding a screenshot of the first policyComponent from my test 
`WSSecurity10CustomizedAlgorithmSuiteTest` 
![image](https://private-user-images.githubusercontent.com/26897889/301185722-35bcf95a-46f0-4be7-9ef6-b55a29295947.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MDY3MTAxMzYsIm5iZiI6MTcwNjcwOTgzNiwicGF0aCI6Ii8yNjg5Nzg4OS8zMDExODU3MjItMzViY2Y5NWEtNDZmMC00YmU3LTllZjYtYjU1YTI5Mjk1OTQ3LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDAxMzElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwMTMxVDE0MDM1NlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWQxYzM4OTQwZTgwZmJiZDI1MjgxN2Y1ZjMxYzExMWI5Nzc0MmQ2YjkzYmRhYzkwNDIzNTg5NmNiYmVlMmRhMTImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.WKkMVGIJdndrTuN5si2sHKFq8hTuENHe-CQk-W1Lojk)
   
   Hi @JiriOndrusek ,
   
   Please see my comment here
   
https://github.com/apache/cxf/commit/83720f669acc3c0b6d59d781531fb025ce1c554a#r138127443
   This can fix the broken test.
   
   Also I have other comments in the PR.
   
   Thanks!
   Freeman


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@cxf.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to