<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>Hello again,</p>
    <p>I'm fairly sure some how that my code isn't getting a correctly
      setup <span class="typeNameLabel">XMLObjectProviderRegistry, but
        can't see how to dump the configured one from a working project
        to see what might be up, or what the required configuration
        might be and set it.</span></p>
    <p><span class="typeNameLabel">I can't seem to get
        XMLObjectBuilderFactory.getBuilders() to return anything except
        empty, which is weird, right ?</span></p>
    <p><span class="typeNameLabel">Tom<br>
      </span></p>
    <div class="moz-cite-prefix">On 15/06/2021 13:18, Tom Chiverton
      wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:acc38bf2-c03c-9047-09af-e7895f595500@extravision.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <p>[reposting from users@ as requested]</p>
      <p>Hi,</p>
      <p>I'm trying integrate some code that uses OpenSAML (v3). I'm
        trying to build a SAML IDP Response XML so it can be HTTP
        POST'ed to a SP (IDP-initiated SSO). This should be straight
        forward (!).<br>
      </p>
      <p>When I do <br>
      </p>
      <p><font face="monospace">AttributeStatementBuilder
          attributeStatementBuilder =<br>
                          (AttributeStatementBuilder)
          XMLObjectSupport.getBuilder(AttributeStatement.DEFAULT_ELEMENT_NAME);</font></p>
      <p>the result is null in my own project, but the same call in
        another project ( <a class="moz-txt-link-freetext"
          href="https://github.com/AlainODea/opensaml-idp-example"
          moz-do-not-send="true">https://github.com/AlainODea/opensaml-idp-example</a>
        and in particular <a class="moz-txt-link-freetext"
href="https://github.com/AlainODea/opensaml-idp-example/blob/a28aa97a8ecd63c0dbeb7a8f7464e2d4115dc569/src/main/java/com/alainodea/idp/service/AssertionFactory.java#L35"
          moz-do-not-send="true">https://github.com/AlainODea/opensaml-idp-example/blob/a28aa97a8ecd63c0dbeb7a8f7464e2d4115dc569/src/main/java/com/alainodea/idp/service/AssertionFactory.java#L35</a>
        ) does not return null. <br>
      </p>
      <p>AttributeStatement.DEFAULT_ELEMENT_NAME is logging out as
        "{urn:oasis:names:tc:SAML:2.0:assertion}" in both cases.</p>
      <p>I assume I am missing some property (file ?) or initialisation
        / setup code somewhere, but there doesn't seem to be anything in
        the projects' wiki or the classes Java Doc pages to explain what
        it might be.<br>
        <br>
        I'm already doing these two, because the other project did,
        otherwise I get "XMLObjectProviderRegistry was not available
        from the ConfigurationService" from the getBuilder() call<br>
      </p>
      <p><font face="monospace">   
          org.opensaml.xmlsec.config.JavaCryptoValidationInitializer.init();<br>
             
          org.opensaml.core.config.InitializationService.initialize();</font>
      </p>
      <p>Could someone point me in the right direction ?</p>
      <div class="moz-signature">
        <meta charset="UTF-8">
        <title>Tom Chiverton</title>
        <style type="text/css">a, a:visited
        {font-family:Palatino, 'Palatino Linotype', 'Palatino LT STD', Georgia, Serif; color:#3bb3e2; text-decoration:none !important;}a[x-apple-data-detectors] 
        {color: inherit !important; text-decoration: none !important; font-size: inherit !important; font-family: inherit !important; font-weight: inherit !important; line-height: inherit !important;}.appleLinks a 
        {text-decoration:none !important;}</style>
        <!--[if gte mso 9]>
        <style type="text/css">
                a, a:visited {font-family:Palatino, 'Palatino Linotype', 'Palatino LT STD', Georgia, Serif; color:#3bb3e2; text-decoration:none !important;}
        </style>
<![endif]--> --
        <table style="max-width:600px;" width="100%" cellspacing="0"
          cellpadding="0" border="0" bgcolor="#FFFFFF">
          <tbody>
            <tr>
              <td style="line-height:20px; font-size:20px;" height="20"> </td>
            </tr>
            <tr>
              <td style="mso-line-height-rule:exactly; line-height:1px;
                font-size:1px;" height="1" bgcolor="#f2f5f7"><img
                  src="https://extravision.s3.eu-west-1.amazonaws.com/images/blank.gif"
                  style="display:block;" alt="" moz-do-not-send="true"
                  width="1" height="1"></td>
            </tr>
            <tr>
              <td style="line-height:20px; font-size:20px;" height="20"> </td>
            </tr>
            <tr>
              <td width="100%" valign="top">
                <table width="100%" cellspacing="0" cellpadding="0"
                  border="0">
                  <tbody>
                    <tr>
                      <td style="font-family:Palatino, 'Palatino
                        Linotype', 'Palatino LT STD', Georgia, Serif;
                        color:#4f5354; font-size:15px;
                        line-height:18px;" width="100%" valign="top"
                        align="left"> <strong>Tom Chiverton</strong><br>
                        Lead Developer </td>
                    </tr>
                    <tr>
                      <td style="line-height:20px; font-size:20px;"
                        height="20"> </td>
                    </tr>
                    <tr>
                      <td valign="top" align="left">
                        <table width="250" cellspacing="0"
                          cellpadding="0" border="0">
                          <tbody>
                            <tr>
                              <td style="font-family:Palatino, 'Palatino
                                Linotype', 'Palatino LT STD', Georgia,
                                Serif; color:#3bb3e2; font-size:15px;
                                line-height:22px; text-decoration:none;"
                                width="30" valign="top" align="left">e:</td>
                              <td style="font-family:Palatino, 'Palatino
                                Linotype', 'Palatino LT STD', Georgia,
                                Serif; color:#4f5354; font-size:15px;
                                line-height:22px;" width="220"
                                valign="top" align="left"><a
                                  href="mailto:tc@extravision.com"
                                  style="font-family:Palatino, 'Palatino
                                  Linotype', 'Palatino LT STD', Georgia,
                                  Serif; color:#4f5354; font-size:15px;
                                  text-decoration:none !important;"
                                  moz-do-not-send="true">tc@extravision.com</a></td>
                            </tr>
                            <tr>
                              <td style="font-family:Palatino, 'Palatino
                                Linotype', 'Palatino LT STD', Georgia,
                                Serif; color:#3bb3e2; font-size:15px;
                                line-height:22px; text-decoration:none;"
                                valign="top" align="left">p:</td>
                              <td style="font-family:Palatino, 'Palatino
                                Linotype', 'Palatino LT STD', Georgia,
                                Serif; color:#4f5354; font-size:15px;
                                line-height:22px;" valign="top"
                                align="left">0161‌ 817‌ 2929</td>
                            </tr>
                            <tr>
                              <td style="font-family:Palatino, 'Palatino
                                Linotype', 'Palatino LT STD', Georgia,
                                Serif; color:#3bb3e2; font-size:15px;
                                line-height:22px; text-decoration:none;"
                                valign="top" align="left">t:</td>
                              <td style="font-family:Palatino, 'Palatino
                                Linotype', 'Palatino LT STD', Georgia,
                                Serif; color:#4f5354; font-size:15px;
                                line-height:22px;" valign="top"
                                align="left">@extravision</td>
                            </tr>
                            <tr>
                              <td style="font-family:Palatino, 'Palatino
                                Linotype', 'Palatino LT STD', Georgia,
                                Serif; color:#3bb3e2; font-size:15px;
                                line-height:22px; text-decoration:none;"
                                valign="top" align="left">w:</td>
                              <td style="font-family:Palatino, 'Palatino
                                Linotype', 'Palatino LT STD', Georgia,
                                Serif; color:#4f5354; font-size:15px;
                                line-height:22px;" valign="top"
                                align="left">extravision‌.com‌</td>
                            </tr>
                          </tbody>
                        </table>
                      </td>
                    </tr>
                    <tr>
                      <td style="line-height:20px; font-size:20px;"
                        height="20"> </td>
                    </tr>
                    <tr>
                      <td width="100%" valign="top">
                        <table width="200" cellspacing="0"
                          cellpadding="0" border="0">
                          <tbody>
                            <tr>
                              <td width="200" valign="top" align="left">
                                <a href="https://www.extravision.com"
                                  target="_blank" moz-do-not-send="true"><img
src="https://extravision.s3.eu-west-1.amazonaws.com/images/extravision-logo-on-light.png"
                                    style="display:block;"
                                    alt="Extravision"
                                    moz-do-not-send="true" width="200"
                                    height="31" border="0"></a> </td>
                            </tr>
                          </tbody>
                        </table>
                      </td>
                    </tr>
                    <tr>
                      <td style="line-height:20px; font-size:20px;"
                        height="20"> </td>
                    </tr>
                    <tr>
                      <td valign="top" align="left">
                        <table width="100%" cellspacing="0"
                          cellpadding="0" border="0">
                          <tbody>
                            <tr>
                              <td style="font-family:Palatino, 'Palatino
                                Linotype', 'Palatino LT STD', Georgia,
                                Serif; color:#4f5354; font-size:12px;
                                line-height:16px;" width="100%"
                                valign="top" align="left"> Registered in
                                the UK at: Tomorrow‌, MediaCityUK‌,
                                Salford‌ M50‌ 2AB.<br>
                                Company Reg No: 05017214‌ VAT: GB 824‌
                                5386‌ 19<br>
                                <br>
                                This e-mail is intended solely for the
                                person to whom it is addressed and may
                                contain confidential or privileged
                                information. Any views or opinions
                                presented in this e-mail are solely of
                                the author and do not necessarily
                                represent those of Extravision Ltd. </td>
                            </tr>
                          </tbody>
                        </table>
                      </td>
                    </tr>
                  </tbody>
                </table>
              </td>
            </tr>
          </tbody>
        </table>
      </div>
      <br clear="all">
______________________________________________________________________<br>
      This email has been scanned by the Symantec Email Security.cloud
      service.<br>
      For more information please visit <a class="moz-txt-link-freetext" href="http://www.symanteccloud.com">http://www.symanteccloud.com</a><br>
______________________________________________________________________<br>
      <br clear="all">
______________________________________________________________________<br>
      This email has been scanned by the Symantec Email Security.cloud
      service.<br>
      For more information please visit <a class="moz-txt-link-freetext" href="http://www.symanteccloud.com">http://www.symanteccloud.com</a><br>
______________________________________________________________________<br>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
    </blockquote>
  <br clear="both">
______________________________________________________________________<BR>
This email has been scanned by the Symantec Email Security.cloud service.<BR>
For more information please visit http://www.symanteccloud.com<BR>
______________________________________________________________________<BR>
</body>
</html>