Instanciating an EntityDescriptor object

Cantor, Scott cantor.2 at osu.edu
Mon Jul 22 15:04:17 EDT 2013


On 7/22/13 2:53 PM, "Wessel, Keith" <kwessel at illinois.edu> wrote:

>I¹m back on my mission of a fancy IDP logout page that lists the service
>names from metadata of sessions that the IDP still believes to be active.
>I¹ve hit a stumbling block with my limited knowledge of the underlying
>classes, though. I¹ve
> got the ServiceInformation objects for each of the SP sessions the IDP
>knows about, and I want to create an EntityDescriptor object for each one
>in turn so I can parse out various UI elements from metadata.

You don't need to create them, you have to get access to the metadata
that's already loaded for those systems.

You might try adapating something from the getSPEntityDescriptor in the
ServiceTagSupport class in the IdP that the taglibs use.

> 
>First, is this the right way to go about this?

No.

> 
>Secondly, I can¹t find any hints on the available constructors for the
>EntityDescriptor class. I found out the hard way that it won¹t take a
>string containing the entityID as returned from
>ServiceInformation.getEntityID(). What tricks do I need to do to take the
>information from the ServiceInformation object to build my
>EntityDescriptor object?

Building anything requires going through the XMLObjectBuilder layer, and
doesn't help you, that just builds an empty object.

> 
>I¹ve used the code available from the wiki for doing something similar
>with the centralized discovery service, but that has a provider object to
>pass into the construction of the EntityDescriptor.

That's not a constructor, it's retrieving one, not creating it.

-- Scott




More information about the users mailing list