Class Sasl
java.lang.Object
com.couchbase.client.core.security.sasl.Sasl
public class Sasl extends Object
A wrapper for
Sasl
which first tries the mechanisms that are supported
out of the box and then tries our extended range (provided by ShaSaslClient
.- Version:
- 1.2.5
- Author:
- Trond Norbye
-
Constructor Summary
Constructors Constructor Description Sasl()
-
Method Summary
Modifier and Type Method Description static SaslClient
createSaslClient(String[] mechanisms, String authorizationId, String protocol, String serverName, Map<String,?> props, CallbackHandler cbh)
Creates a newSaslClient
and first tries the JVM built in clients before falling back to our custom implementations.
-
Constructor Details
-
Sasl
public Sasl()
-
-
Method Details
-
createSaslClient
public static SaslClient createSaslClient(String[] mechanisms, String authorizationId, String protocol, String serverName, Map<String,?> props, CallbackHandler cbh) throws SaslExceptionCreates a newSaslClient
and first tries the JVM built in clients before falling back to our custom implementations. The mechanisms are tried in the order they arrive.- Throws:
SaslException
-