Details
-
Bug
-
Status: Resolved
-
Critical
-
Resolution: Fixed
-
1.1, 1.2
-
None
-
None
-
Rampart-head , Axis2 1.2, Tomcat 5.5.23
Description
I am using the following policy snippet (below). I would like to implement username authentication with symmetric keys (this works perfectly with WSIT and Glassfish, JAX-WS RI ) :
--------------------------------------------------------
<sp:SymmetricBinding xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy">
<wsp:Policy>
<sp:ProtectionToken>
<wsp:Policy>
<sp:X509Token sp:IncludeToken="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy/IncludeToken/Never">
<wsp:Policy>
<sp:WssX509V3Token10/>
</wsp:Policy>
</sp:X509Token>
</wsp:Policy>
</sp:ProtectionToken>
<sp:Layout>
<wsp:Policy>
<sp:Strict/>
</wsp:Policy>
</sp:Layout>
<sp:IncludeTimestamp/>
<sp:OnlySignEntireHeadersAndBody/>
<sp:AlgorithmSuite>
<wsp:Policy>
<sp:Basic128/>
</wsp:Policy>
</sp:AlgorithmSuite>
</wsp:Policy>
</sp:SymmetricBinding>
---------------------------------------------------------------------------------
And I am getting the following Exception:
[java] INFO: Deploying module: addressing-1.2
[java] May 6, 2007 2:27:39 PM org.apache.axis2.deployment.ModuleDeployer deploy
[java] INFO: Deploying module: rampart-1.2
[java] Exception in thread "main" java.lang.UnsupportedOperationException: TODO
[java] at org.apache.rampart.builder.BindingBuilder.doSymmSignature(BindingBuilder.java:540)
[java] at org.apache.rampart.builder.SymmetricBindingBuilder.doSignBeforeEncrypt(SymmetricBindingBuilder.java:370)
[java] at org.apache.rampart.builder.SymmetricBindingBuilder.build(SymmetricBindingBuilder.java:73)
[java] at org.apache.rampart.MessageBuilder.build(MessageBuilder.java:127)
[java] at org.apache.rampart.handler.RampartSender.invoke(RampartSender.java:57)
[java] at org.apache.axis2.engine.Phase.invoke(Phase.java:383)
[java] at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:203)
[java] at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:433)
[java] at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:330)
[java] at org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:294)
[java] at org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:520)
[java] at org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:500)
[java] at org.apache.rampart.samples.policy.sample03.Client.main(Unknown Source)
[java] Java Result: 1
In the code (BindingBuilder.java) I can see:
-------------------------------------------------------------------------
}
} else
--------------------------------------------------------------------------
Apparently I am not using anything related to SAML or whatever... it's a very basic functionality. Thank you very much.
Regards,
Angel