Class Sasl
- java.lang.Object
-
- com.couchbase.client.core.security.sasl.Sasl
-
public class Sasl extends Object
A wrapper forSasl
which first tries the mechanisms that are supported out of the box and then tries our extended range (provided byShaSaslClient
.- Version:
- 1.2.5
- Author:
- Trond Norbye
-
-
Constructor Summary
Constructors Constructor Description Sasl()
-
Method Summary
All Methods Static Methods Concrete Methods 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.
-
-
-
Method Detail
-
createSaslClient
public static SaslClient createSaslClient(String[] mechanisms, String authorizationId, String protocol, String serverName, Map<String,?> props, CallbackHandler cbh) throws SaslException
Creates 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
-
-