Package com.rabbitmq.client
Class JDKSaslConfig
java.lang.Object
com.rabbitmq.client.JDKSaslConfig
- All Implemented Interfaces:
SaslConfig
Implementation of SaslConfig that uses the JDK SASL implementation. This is
not the default since it does not work on Java 1.4, Android or IBM's JDK.
- See Also:
-
Constructor Summary
ConstructorDescriptionJDKSaslConfig
(ConnectionFactory factory) Create a JDKSaslConfig which only wants to use PLAIN.JDKSaslConfig
(ConnectionFactory factory, String[] mechanisms) Create a JDKSaslConfig with a list of mechanisms to use. -
Method Summary
-
Constructor Details
-
JDKSaslConfig
Create a JDKSaslConfig which only wants to use PLAIN.- Parameters:
factory
- - the ConnectionFactory to use to obtain username, password and host
-
JDKSaslConfig
Create a JDKSaslConfig with a list of mechanisms to use.- Parameters:
factory
- - the ConnectionFactory to use to obtain username, password and hostmechanisms
- - a list of SASL mechanisms to use (in descending order of preference)
-
-
Method Details
-
getSaslMechanism
- Specified by:
getSaslMechanism
in interfaceSaslConfig
-