]
Jan Kalina reassigned ELY-788:
------------------------------
Assignee: Jan Kalina (was: Darran Lofthouse)
Elytron SASL factories don't follow contract from corresponding
Java interfaces
-------------------------------------------------------------------------------
Key: ELY-788
URL:
https://issues.jboss.org/browse/ELY-788
Project: WildFly Elytron
Issue Type: Bug
Reporter: Josef Cacek
Assignee: Jan Kalina
Priority: Blocker
Labels: sasl
Java
[
SaslClientFactory|http://docs.oracle.com/javase/8/docs/api/javax/security...]
and
[
SaslServerFactory|http://docs.oracle.com/javase/8/docs/api/javax/security...]
interfaces define where {{null}} parameters or {{null}} return values are allowed and
which Exception types can be used in methods. Elytron implementation of SASL mechanisms
doesn't follow this contract, which results in NullPointerExceptions.
E.g.
{code}
java.lang.NullPointerException
at
org.wildfly.security.sasl.scram.ScramSaslClientFactory.getMechanismNames(ScramSaslClientFactory.java:119)
...
{code}