You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ws.apache.org by "Alexey Markevich (Jira)" <ji...@apache.org> on 2020/08/27 20:00:15 UTC

[jira] [Created] (WSS-678) OpenSAML Decrypter initialization failed

Alexey Markevich created WSS-678:
------------------------------------

             Summary: OpenSAML Decrypter initialization failed
                 Key: WSS-678
                 URL: https://issues.apache.org/jira/browse/WSS-678
             Project: WSS4J
          Issue Type: Bug
          Components: WSS4J Core
    Affects Versions: 2.3.0
            Reporter: Alexey Markevich
            Assignee: Colm O hEigeartaigh


Following code

{code:java}
OpenSAMLUtil.initSamlEngine();
Decrypter decrypter = new Decrypter(null, null, null);
{code}

cause

{code:java}
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)
{code}

Possible fix is


{code:java}
        ConfigurationService.register(DecryptionParserPool.class,
            new DecryptionParserPool(OpenSAMLUtil.getParserPool()));
{code}





--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ws.apache.org
For additional commands, e-mail: dev-help@ws.apache.org