OpenSAML V3: Problems while marshaling encrypted assertion

Massimiliano Masi max at mascanc.net
Thu May 4 11:37:30 EDT 2017


Hi All, 

> Il giorno 28 apr 2017, alle ore 21:24, Brent Putman <putmanb at georgetown.edu> ha scritto:
> 
> In v3, if you want to validate the XML at parsing time against the SAML schemas, we have a convenience class org.opensaml.saml.common.xml.SAMLSchemaBuilder for building a javax.xml.validation.Schema instance.  Then you configure that on your ParserPool instance (e.g. net.shibboleth.utilities.java.support.xml.BasicParserPool).  This is the easiest way to do JAXP-level schema validation.

What about the Core  Spec Validator? Is it still available? In v2 I had this nice method (that saved me a lot of time). 

 public static void validateCoreSpec(final SAMLObject a) throws ValidationException {
        ValidatorSuite val = org.opensaml.Configuration.getValidatorSuite("saml2-core-spec-validator");
        if (val == null) {
            throw new ValidationException("Unable to find a validator");
        }

        val.validate(a);
    }

--
Anger is a gift, http://www.mascanc.net/

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://shibboleth.net/pipermail/dev/attachments/20170504/a70fc103/attachment.html>


More information about the dev mailing list