[jboss-jira] [JBoss JIRA] (ELY-1132) Unable to load passwords from wildfly-config.xml

Martin Choma (JIRA) issues at jboss.org
Thu May 4 07:45:00 EDT 2017


    [ https://issues.jboss.org/browse/ELY-1132?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13401919#comment-13401919 ] 

Martin Choma commented on ELY-1132:
-----------------------------------

I would say these are they:
{code:java|title=ElytronXmlParser.java}
                    case "key-store-clear-password": {
                        // group 2
                        if (! gotSource || gotCredential) {
                            throw reader.unexpectedElement();
                        }
                        gotCredential = true;
                        final char[] clearPassword = ((ClearPassword) parseClearPassword(reader, Security::getProviders).get()).getPassword();
                        passwordFactory = () -> clearPassword;
                        break;
                    }
		...
                    case "key-store-clear-password": {
                        if (keyStoreCredential != null) throw reader.unexpectedElement();
                        ExceptionSupplier<Password, ConfigXMLParseException> credential = parseClearPassword(reader, Security::getProviders);
                        keyStoreCredential = () -> new PasswordEntry(credential.get());
                        break;
                    }
		...
                    case "protection-parameter-credentials": {
                        if (++attributesSectionCount > 2) throw reader.unexpectedContent();
                        credentialSourceSupplier = parseCredentialsType(reader, keyStoresMap, credentialStoresMap, Security::getProviders);
                        break;
                    }
{code}

> Unable to load passwords from wildfly-config.xml
> ------------------------------------------------
>
>                 Key: ELY-1132
>                 URL: https://issues.jboss.org/browse/ELY-1132
>             Project: WildFly Elytron
>          Issue Type: Bug
>            Reporter: Stuart Douglas
>            Assignee: Darran Lofthouse
>
> I see the following exception, adding use-service-loader-providers does not help
> Caused by: java.security.NoSuchAlgorithmException: ELY08028: Invalid algorithm "clear"
> 	at org.wildfly.security.password.PasswordFactory.getInstance(PasswordFactory.java:121)
> 	at org.wildfly.security.auth.client.ElytronXmlParser.lambda$parseClearPassword$47(ElytronXmlParser.java:2009)
> 	... 46 more
> Looks like this should just be hard coded to use the Elytron provider?



--
This message was sent by Atlassian JIRA
(v7.2.3#72005)


More information about the jboss-jira mailing list