Skip to content

Module: husky xua ch impl

Quentin Ligier edited this page May 16, 2022 · 3 revisions

Module: husky-xua-ch-impl

CH:XUA validator

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);