Shibboleth XML Configuration file Validation

Brent Putman putmanb at georgetown.edu
Mon Sep 24 19:15:55 EDT 2012


On 9/24/12 4:30 PM, Brent Putman wrote:
> You can obtain those service bean references via their Spring bean id's,
> which are in turn exported to and so easily available from the
> ServletContext (see the servlet context attribute exporter at the bottom
> of service.xml).  


I forgot that we actually have a more well-defined and official API for
getting these service beans.  See:

edu.internet2.middleware.shibboleth.idp.util.HttpServletHelper

methods getProfileHandlerManager, getRelyingPartyConfigurationManager,
getAttributeResolver, getAttributeFilterEngine.

These are probably better to use than accessing the servlet context
attributes directly, as the Spring bean id's (or how you use them) are
in theory subject to change, but the helper methods guarantee a stable
API to get at these services.

--Brent



More information about the dev mailing list