Package org.wildfly.security.sasl.util
Class PropertiesSaslServerFactory
- java.lang.Object
-
- org.wildfly.security.sasl.util.AbstractDelegatingSaslServerFactory
-
- org.wildfly.security.sasl.util.PropertiesSaslServerFactory
-
- All Implemented Interfaces:
SaslServerFactory
public class PropertiesSaslServerFactory extends AbstractDelegatingSaslServerFactory
A SaslServerFactory allowing the user to add properties- Author:
- Kabir Khan
-
-
Field Summary
Fields Modifier and Type Field Description private Map<String,?>
properties
-
Fields inherited from class org.wildfly.security.sasl.util.AbstractDelegatingSaslServerFactory
delegate
-
-
Constructor Summary
Constructors Constructor Description PropertiesSaslServerFactory(SaslServerFactory delegate, Map<String,?> properties)
Constructor
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private static Map<String,?>
combine(Map<String,?> provided, Map<String,?> configured)
SaslServer
createSaslServer(String mechanism, String protocol, String serverName, Map<String,?> props, CallbackHandler cbh)
String[]
getMechanismNames(Map<String,?> props)
-
Methods inherited from class org.wildfly.security.sasl.util.AbstractDelegatingSaslServerFactory
delegatesThrough, delegatesThroughNN, toString
-
-
-
-
Constructor Detail
-
PropertiesSaslServerFactory
public PropertiesSaslServerFactory(SaslServerFactory delegate, Map<String,?> properties)
Constructor- Parameters:
delegate
- the underlying SaslServerFactoryproperties
- the properties
-
-
Method Detail
-
getMechanismNames
public String[] getMechanismNames(Map<String,?> props)
- Specified by:
getMechanismNames
in interfaceSaslServerFactory
- Overrides:
getMechanismNames
in classAbstractDelegatingSaslServerFactory
-
createSaslServer
public SaslServer createSaslServer(String mechanism, String protocol, String serverName, Map<String,?> props, CallbackHandler cbh) throws SaslException
- Specified by:
createSaslServer
in interfaceSaslServerFactory
- Overrides:
createSaslServer
in classAbstractDelegatingSaslServerFactory
- Throws:
SaslException
-
-