-
Bug
-
Resolution: Done
-
Critical
-
None
-
None
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
Problem is there is used directly System::getProviders()
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; }
instead of providerSupplier, e.g:
ElytronXmlParser.java
case "credentials": { if (isSet(foundBits, 9)) throw reader.unexpectedElement(); foundBits = setBit(foundBits, 9); ExceptionSupplier<CredentialSource, ConfigXMLParseException> credentialSource = parseCredentialsType(reader, keyStoresMap, credentialStoresMap, providerSupplier); configuration = andThenOp(configuration, parentConfig -> parentConfig.useCredentials(credentialSource.get())); break; }
- clones
-
ELY-1132 Unable to load passwords from wildfly-config.xml
- Resolved
- is incorporated by
-
JBEAP-11020 Upgrade WildFly Elytron to 1.1.0.Beta44
- Closed