public class

JDKSaslConfig

extends Object
implements SaslConfig
java.lang.Object
   ↳ com.rabbitmq.client.JDKSaslConfig

Class Overview

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.

Summary

Public Constructors
JDKSaslConfig(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.
Public Methods
SaslMechanism getSaslMechanism(String[] serverMechanisms)
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.rabbitmq.client.SaslConfig

Public Constructors

public JDKSaslConfig (ConnectionFactory factory)

Create a JDKSaslConfig which only wants to use PLAIN.

Parameters
factory - the ConnectionFactory to use to obtain username, password and host

public JDKSaslConfig (ConnectionFactory factory, String[] mechanisms)

Create a JDKSaslConfig with a list of mechanisms to use.

Parameters
factory - the ConnectionFactory to use to obtain username, password and host
mechanisms - a list of SASL mechanisms to use (in descending order of preference)

Public Methods

public SaslMechanism getSaslMechanism (String[] serverMechanisms)