You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cxf.apache.org by "Morris Jr, David P" <da...@lmco.com> on 2011/05/18 20:07:56 UTC

SAMLCallBackHandler callback.setAuthDecisionStatementData

Running SOAPUI test, the evidence element is not present. I may need an example. The code did work with openSAML2.0 and CXF 2.3.x (via interceptors) before SAMLCallBackHandler in CXF 2.4.0 -Thanks!

<saml2:AuthzDecisionStatement>
   <saml2:Action.../>
   <saml2:Evidence...> <!-this is missing -- >
       <saml2:Assertion...>
   </saml2:Evidence>
</saml2:AuthzDecisionStatement>

Environment: CXF 2.4.0, WS4J 1.6.0, Windows XP, Apache Tomcat 7.0.5

Code snippet:

//Build Evidence
EvidenceBuilder evidenceBuilder = new EvidenceBuilder();
Evidence evidence = evidenceBuilder.buildObject();

//Build assertion for Evidence
AssertionBuilder assertionBuilder = new AssertionBuilder();
Assertion assertion = assertionBuilder.buildObject();
assertion.setVersion(SAMLVersion.VERSION_20);

...
authDecisionStatementBean.setEvidence(evidence);