-
Notifications
You must be signed in to change notification settings - Fork 8
Module: husky xua ch impl
Quentin Ligier edited this page May 16, 2022
·
3 revisions
Do not use, it's still in development!
It requires an OpenSAML 4 Assertion object (which wraps a DOM). If you need to parse the XML, you should use the OpenSAML ParserPool:
// Always initialize the OpenSAML library
InitializationService.initialize();
// Initialize the unmarshaller
Unmarshaller unmarshaller = XMLObjectSupport.getUnmarshaller(Assertion.TYPE_NAME);
// Runtime parsing
Document doc = XMLObjectProviderRegistrySupport.getParserPool().parse(assertionInputStream);
// And object creation
Assertion assertion = (Assertion) unmarshaller.unmarshall(element);