Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.3.0
-
None
Description
Following code
OpenSAMLUtil.initSamlEngine(); Decrypter decrypter = new Decrypter(null, null, null);
cause
Exception in thread "main" net.shibboleth.utilities.java.support.logic.ConstraintViolationException: DecryptionParserPool has not been registered with the global configuration
at net.shibboleth.utilities.java.support.logic.Constraint.isNotNull(Constraint.java:227)
at org.opensaml.xmlsec.encryption.support.Decrypter.buildParserPool(Decrypter.java:987)
at org.opensaml.xmlsec.encryption.support.Decrypter.<init>(Decrypter.java:289)
at org.opensaml.xmlsec.encryption.support.Decrypter.<init>(Decrypter.java:271)
at org.opensaml.saml.saml2.encryption.Decrypter.<init>(Decrypter.java:75)
Possible fix is
ConfigurationService.register(DecryptionParserPool.class,
new DecryptionParserPool(OpenSAMLUtil.getParserPool()));
Attachments
Issue Links
- links to