[jboss-jira] [JBoss JIRA] (ELY-788) Elytron SASL factories don't follow contract from corresponding Java interfaces

Josef Cacek (JIRA) issues at jboss.org
Wed Nov 23 10:24:00 EST 2016


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/sasl/SaslClientFactory.html] and [SaslServerFactory|http://docs.oracle.com/javase/8/docs/api/javax/security/sasl/SaslServerFactory.html] 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)


More information about the jboss-jira mailing list