<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">I see this wiki:&nbsp;<a href="https://wiki.shibboleth.net/confluence/display/OpenSAML/OSTwoUsrManJavaCreateFromScratch">https://wiki.shibboleth.net/confluence/display/OpenSAML/OSTwoUsrManJavaCreateFromScratch</a><div><br></div><div>I am wondering why the second way is not preferred. Seems that wiki is not explaining why. Or I missed anything?</div><div><br></div><div>Thanks,</div><div>Yaowen</div><div><br><div><div>On Aug 3, 2012, at 7:27 PM, Chad La Joie wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>Please refer to the OpenSAML documentation. &nbsp;It covers this.<br><br>On Fri, Aug 3, 2012 at 9:19 PM, Yaowen Tu &lt;<a href="mailto:yaowen.tu@gmail.com">yaowen.tu@gmail.com</a>&gt; wrote:<br><blockquote type="cite">Hi,<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">I am looking at some examples, and seeing two different ways of creating<br></blockquote><blockquote type="cite">SAML object. I want to know which is better?<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">One:<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">XMLObjectBuilderFactory builderFactory =<br></blockquote><blockquote type="cite">org.opensaml.Configuration.getBuilderFactory();<br></blockquote><blockquote type="cite">AuthnRequestBuilder arb = (AuthnRequestBuilder) builderFactory.getBuilder(<br></blockquote><blockquote type="cite">AuthnRequest.DEFAULT_ELEMENT_NAME );<br></blockquote><blockquote type="cite">AuthnRequest auth = (AuthnRequest) arb.buildObject();<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Another:<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">AuthnRequest arb = (new AuthnRequestBuilder()).buildObject();<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">One is using factory to get the builder, and the other is just create a new<br></blockquote><blockquote type="cite">builder. I am not sure about the implementation. So I want to know which is<br></blockquote><blockquote type="cite">better?<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Is the first one faster? Do we recommend using the second one?<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Thanks,<br></blockquote><blockquote type="cite">Yaowen<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">--<br></blockquote><blockquote type="cite">To unsubscribe from this list send an email to<br></blockquote><blockquote type="cite"><a href="mailto:dev-unsubscribe@shibboleth.net">dev-unsubscribe@shibboleth.net</a><br></blockquote><br><br><br>-- <br>Chad La Joie<br><a href="http://www.itumi.biz">www.itumi.biz</a><br>trusted identities, delivered<br>--<br>To unsubscribe from this list send an email to dev-unsubscribe@shibboleth.net<br></div></blockquote></div><br></div></body></html>