Let me ask you a question - what exactly are you trying to do with multiple AlgorithmSuites?
On the client/outbound side, it will always pick the first AlgorithmSuite, as it can only use one to secure the request. On the receiving side, it's valid to use ExactlyOne to specify a list of AlgorithmSuites that are acceptable. I don't know why you are seeing the error message below. When experimenting with the code I discovered a bug where it reports "ExactlyOne" as below, instead of giving the failing AlgorithmSuite. However, all of the algorithm suites you have listed below are valid. Could you try with a more up-to-date version of CXF to see if it still reports an error? 2.7.x is no longer supported. Colm. On Thu, Sep 22, 2016 at 5:22 PM, Alejandro <[email protected]> wrote: > Hi, I've tried to put > <sp:AlgorithmSuite> > <wsp:Policy> > <wsp:ExactlyOne> > > <sp:Basic128Rsa15 /> > > <sp:Basic256Rsa15 /> > > <sp:Basic128Sha256Rsa15 /> > > <sp:Basic256Sha256Rsa15 /> > </wsp:ExactlyOne> > </wsp:Policy> > </sp:AlgorithmSuite> > > But I've get this errror: > org.apache.cxf.ws.security.policy.WSSPolicyException: Invalid algorithm > suite ExactlyOne. > > Where is the problem? > > Regards > > > > -- > View this message in context: http://cxf.547215.n5.nabble.co > m/WS-Security-Policy-Problem-with-algorithm-suite-tp5772956p5772966.html > Sent from the cxf-user mailing list archive at Nabble.com. > -- Colm O hEigeartaigh Talend Community Coder http://coders.talend.com
