KeyInfoBuilder in OpenSAML 3
Cantor, Scott
cantor.2 at osu.edu
Thu Jun 11 09:31:08 EDT 2015
On 6/11/15, 12:37 PM, "Stephen.CTR.Chappell at faa.gov"
<Stephen.CTR.Chappell at faa.gov> wrote:
>I’m not sure what you mean exactly by not making direct use of the
>–Builders. I’m doing something like this:
>
>XMLObjectProviderRegistry xmlObjectRegistry =
>ConfigurationService.get(XMLObjectProviderRegistry.class);
>XMLObjectBuilderFactory builderFactory =
>xmlObjectRegistry.getBuilderFactory();
>…
>KeyInfoBuilder kiBuilder = (KeyInfoBuilder)
>builderFactory.getBuilder(KeyInfo.DEFAULT_ELEMENT_NAME);
Normally you don't cast the Builder itself, just the result. If you have a
reference to an impl class, you're basically depending on code that's free
to change at any time.
-- Scott
More information about the dev
mailing list