Adding <wsa:EndpointReference> element to <wst:OnBehalfOf> element

Brent Putman putmanb at georgetown.edu
Tue Mar 27 22:25:20 BST 2012



On 3/26/12 6:16 PM, Gina Choi wrote:
> Hi All,
> 
> I am looking at WS-Trust 1.3 OASIS Standard 19 March 2007 from line
> 1893-1901(http://docs.oasis-open.org/ws-sx/ws-trust/200512/ws-trust-1.3-os.pd
> f
> ). Based on specification, we should be able to add OnBehalfOf element to
> RequestSecurityToken and OnBehalfOf element can have EndPointReference as a
> sub-elelment. I try to use onbehalfof.getUnknownXMLObject().add to add
> EndPointReference to OnBehalfOf, but "add" method isn't available to
> org.opensaml.ws.wstrust.OnBehalfOf element.


I checked, the implementation of the provider for the OnBehalfOf element
is wrong.  The schema specifies a sequence of child elements, but the
impl only supports a single child, via a get/set pair of methods.

Until we fix it in the next release, and as long as you only have one
child to add, that should work.


More information about the dev mailing list