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
.
Constructor and Description |
---|
Sasl() |
Modifier and Type | Method and Description |
---|---|
static SaslClient |
createSaslClient(String[] mechanisms,
String authorizationId,
String protocol,
String serverName,
Map<String,?> props,
CallbackHandler cbh)
Creates a new
SaslClient and first tries the JVM built in clients before falling back to our custom implementations. |
public static SaslClient createSaslClient(String[] mechanisms, String authorizationId, String protocol, String serverName, Map<String,?> props, CallbackHandler cbh) throws SaslException
Creates a new SaslClient
and first tries the JVM built in clients before falling back to our custom implementations. The mechanisms are tried in the order they arrive.
SaslException
Copyright © 2017 Couchbase, Inc.. All rights reserved.