Package com.isode.som
Class SomSaslClientFactory
java.lang.Object
com.isode.som.SomSaslClientFactory
- All Implemented Interfaces:
SaslClientFactory
Class which provides a SaslClientFactory which can create SomScramSha1Client instances.
- Since:
- 16.1
- Author:
- tc
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateSaslClient(String[] mechs, String authz, String prot, String server, Map<String, ?> props, CallbackHandler cbh) Factory method which creates a SASL client which uses SCRAM-SHA-1String[]getMechanismNames(Map<String, ?> arg0) Return the mechanisms which this client supports
-
Constructor Details
-
SomSaslClientFactory
public SomSaslClientFactory()Default constructor required by implementation.
-
-
Method Details
-
createSaslClient
public SaslClient createSaslClient(String[] mechs, String authz, String prot, String server, Map<String, ?> props, CallbackHandler cbh) throws SaslExceptionFactory method which creates a SASL client which uses SCRAM-SHA-1- Specified by:
createSaslClientin interfaceSaslClientFactory- Parameters:
mechs- array of SASL mechanism namesauthz- SASL authidprot- protocol to useserver- server nameprops- propertiescbh- callback handler- Throws:
SaslException
-
getMechanismNames
Return the mechanisms which this client supports- Specified by:
getMechanismNamesin interfaceSaslClientFactory- Parameters:
arg0- not used- Returns:
- array of mechanism names
-