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