Package org.wildfly.security.sasl.otp
Class OTPSaslClientFactory
java.lang.Object
org.wildfly.security.sasl.otp.OTPSaslClientFactory
- All Implemented Interfaces:
SaslClientFactory
@MetaInfServices(javax.security.sasl.SaslClientFactory.class)
public final class OTPSaslClientFactory
extends Object
implements SaslClientFactory
The client factory for the OTP SASL mechanism.
- Author:
- Farah Juma
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateSaslClient(String[] mechanisms, String authorizationId, String protocol, String serverName, Map<String, ?> props, CallbackHandler cbh) static StringdictionaryArrayToProperty(String[] dictionaryArray) Construct the value of theOTP_ALTERNATE_DICTIONARYproperty from an array of words.String[]getMechanismNames(Map<String, ?> props)
-
Constructor Details
-
OTPSaslClientFactory
public OTPSaslClientFactory() -
OTPSaslClientFactory
-
-
Method Details
-
createSaslClient
public SaslClient createSaslClient(String[] mechanisms, String authorizationId, String protocol, String serverName, Map<String, ?> props, CallbackHandler cbh) throws SaslException- Specified by:
createSaslClientin interfaceSaslClientFactory- Throws:
SaslException
-
getMechanismNames
- Specified by:
getMechanismNamesin interfaceSaslClientFactory
-
dictionaryArrayToProperty
Construct the value of theOTP_ALTERNATE_DICTIONARYproperty from an array of words.- Parameters:
dictionaryArray- the array of words in the alternate dictionary- Returns:
- the alternate dictionary as a string, where each word is separated by a space character
-