accessing user attribute in view
Cantor, Scott
cantor.2 at osu.edu
Thu Aug 31 15:53:59 EDT 2017
> I'm having trouble
> trying to figure out how to navigate the tree and pull the attribute value. I
> have never attempted this before and can't find any documentation on how
> to do this (or maybe I'm not looking in the right places).
Many of the wiki examples doing various things include context tree access, but basically you need the Javadocs for the BaseContext class in OpenSAML, where you'll see the generic navigation methods available, principally getSubcontext. It takes a class type or to be more scripting friendly it can take the string name of the class type, so you just call it with the full class name of the subcontext type you want to access, check for null, and move on from there. The hard part is what I think you already have, the structure layout you need to navigate.
-- Scott
More information about the users
mailing list