Josef Cacek created ELY-788:
-------------------------------
Summary: 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: Darran Lofthouse
Priority: Blocker
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}
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)