Uploaded image for project: 'WSS4J'
  1. WSS4J
  2. WSS-678

OpenSAML Decrypter initialization failed

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.3.0
    • 2.3.1, 2.4.0
    • WSS4J Core
    • 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

          Activity

            People

              coheigea Colm O hEigeartaigh
              buhhunyx Alexey Markevich
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: