XMLObjectSupport.getBuilder() is returning null
Tom Chiverton
tc at extravision.com
Tue Jun 15 11:02:22 UTC 2021
Hi,
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 (!).
When I do
AttributeStatementBuilder attributeStatementBuilder =
(AttributeStatementBuilder)
XMLObjectSupport.getBuilder(AttributeStatement.DEFAULT_ELEMENT_NAME);
the result is null in my own project, but the same call in another
project ( https://github.com/AlainODea/opensaml-idp-example and in
particular
https://github.com/AlainODea/opensaml-idp-example/blob/a28aa97a8ecd63c0dbeb7a8f7464e2d4115dc569/src/main/java/com/alainodea/idp/service/AssertionFactory.java#L35
) does not return null.
AttributeStatement.DEFAULT_ELEMENT_NAME is logging out as
"{urn:oasis:names:tc:SAML:2.0:assertion}" in both cases.
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.
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
org.opensaml.xmlsec.config.JavaCryptoValidationInitializer.init();
org.opensaml.core.config.InitializationService.initialize();
Could someone point me in the right direction ?
Tom Chiverton --
*Tom Chiverton*
Lead Developer
e: tc at extravision.com <mailto:tc at extravision.com>
p: 0161 817 2929
t: @extravision
w: extravision.com
Extravision <https://www.extravision.com>
Registered in the UK at: Tomorrow, MediaCityUK, Salford M50 2AB.
Company Reg No: 05017214 VAT: GB 824 5386 19
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.
______________________________________________________________________
This email has been scanned by the Symantec Email Security.cloud service.
For more information please visit http://www.symanteccloud.com
______________________________________________________________________
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://shibboleth.net/pipermail/users/attachments/20210615/11220271/attachment.htm>
More information about the users
mailing list