Which way is better to create a saml object?
Chad La Joie
lajoie at itumi.biz
Fri Aug 3 22:27:41 EDT 2012
Please refer to the OpenSAML documentation. It covers this.
On Fri, Aug 3, 2012 at 9:19 PM, Yaowen Tu <yaowen.tu at gmail.com> wrote:
> Hi,
>
> I am looking at some examples, and seeing two different ways of creating
> SAML object. I want to know which is better?
>
> One:
>
> XMLObjectBuilderFactory builderFactory =
> org.opensaml.Configuration.getBuilderFactory();
> AuthnRequestBuilder arb = (AuthnRequestBuilder) builderFactory.getBuilder(
> AuthnRequest.DEFAULT_ELEMENT_NAME );
> AuthnRequest auth = (AuthnRequest) arb.buildObject();
>
>
> Another:
>
> AuthnRequest arb = (new AuthnRequestBuilder()).buildObject();
>
> One is using factory to get the builder, and the other is just create a new
> builder. I am not sure about the implementation. So I want to know which is
> better?
>
> Is the first one faster? Do we recommend using the second one?
>
>
> Thanks,
> Yaowen
>
> --
> To unsubscribe from this list send an email to
> dev-unsubscribe at shibboleth.net
--
Chad La Joie
www.itumi.biz
trusted identities, delivered
More information about the dev
mailing list