public class JDKSaslConfig extends Object implements SaslConfig
ConnectionFactory
Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
SaslMechanism |
getSaslMechanism(String[] serverMechanisms) |
public JDKSaslConfig(ConnectionFactory factory)
factory
- - the ConnectionFactory to use to obtain username, password and hostpublic JDKSaslConfig(ConnectionFactory factory, String[] mechanisms)
factory
- - the ConnectionFactory to use to obtain username, password and hostmechanisms
- - a list of SASL mechanisms to use (in descending order of preference)public SaslMechanism getSaslMechanism(String[] serverMechanisms)
getSaslMechanism
in interface SaslConfig
Copyright © 2022 VMware, Inc. or its affiliates.. All rights reserved.