[jboss-jira] [JBoss JIRA] (ELY-261) Rework (and move) UsernamePasswordHashUtil

Jan Kalina (JIRA) issues at jboss.org
Fri Jan 26 04:15:00 EST 2018


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

Jan Kalina commented on ELY-261:
--------------------------------

For using PasswordFactory in elytron util (Main class of the elytron jar) there is problem:
WildflyElytronProvider requires classes from wildfly.common - looks like we would have to include wildfly.common into elytron jar :(

{code}
$ java -jar wildfly-elytron-1.2.0.Beta13-SNAPSHOT.jar UsernamePasswordHashUtil admin Test pass
Exception in thread "main" java.lang.BootstrapMethodError: java.lang.NoClassDefFoundError: org/wildfly/common/function/ExceptionSupplier
	at org.wildfly.security.WildFlyElytronProvider.toSupplier(WildFlyElytronProvider.java:393)
	at org.wildfly.security.WildFlyElytronProvider.putHttpAuthenticationMechanismImplementations(WildFlyElytronProvider.java:251)
	at org.wildfly.security.WildFlyElytronProvider.<init>(WildFlyElytronProvider.java:161)
	at org.wildfly.security._private.Main.usernamePasswordHash(Main.java:139)
	at org.wildfly.security._private.Main.main(Main.java:97)
Caused by: java.lang.NoClassDefFoundError: org/wildfly/common/function/ExceptionSupplier
	... 5 more
Caused by: java.lang.ClassNotFoundException: org.wildfly.common.function.ExceptionSupplier
	at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:335)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
	... 5 more
{code}

> Rework (and move) UsernamePasswordHashUtil
> ------------------------------------------
>
>                 Key: ELY-261
>                 URL: https://issues.jboss.org/browse/ELY-261
>             Project: WildFly Elytron
>          Issue Type: Feature Request
>          Components: API / SPI, Passwords
>            Reporter: Darran Lofthouse
>            Assignee: Jan Kalina
>             Fix For: 1.2.0.Beta14
>
>
> Firstly this class is not really SASL specific so should be in a general util package.
> Secondly we now have password specs and a PasswordFactory - if this class still has a future then maybe it should be using those instead of it's own custom implementation.



--
This message was sent by Atlassian JIRA
(v7.5.0#75005)


More information about the jboss-jira mailing list