Package org.wildfly.security.sasl.util
Class SortedMechanismSaslServerFactory
- java.lang.Object
-
- org.wildfly.security.sasl.util.AbstractDelegatingSaslServerFactory
-
- org.wildfly.security.sasl.util.SortedMechanismSaslServerFactory
-
- All Implemented Interfaces:
SaslServerFactory
public class SortedMechanismSaslServerFactory extends AbstractDelegatingSaslServerFactory
A delegatingSaslServerFactory
which will sort the mechanism names using either a suppliedComparator
<String
> or a supplied ordering of mechanism names.- Author:
- Darran Lofthouse
-
-
Field Summary
-
Fields inherited from class org.wildfly.security.sasl.util.AbstractDelegatingSaslServerFactory
delegate
-
-
Constructor Summary
Constructors Constructor Description SortedMechanismSaslServerFactory(SaslServerFactory delegate, String... mechanismNames)
SortedMechanismSaslServerFactory(SaslServerFactory delegate, Comparator<String> mechanismNameComparator)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String[]
getMechanismNames(Map<String,?> props)
-
Methods inherited from class org.wildfly.security.sasl.util.AbstractDelegatingSaslServerFactory
createSaslServer, delegatesThrough, toString
-
-
-
-
Constructor Detail
-
SortedMechanismSaslServerFactory
public SortedMechanismSaslServerFactory(SaslServerFactory delegate, Comparator<String> mechanismNameComparator)
-
SortedMechanismSaslServerFactory
public SortedMechanismSaslServerFactory(SaslServerFactory delegate, String... mechanismNames)
-
-
Method Detail
-
getMechanismNames
public String[] getMechanismNames(Map<String,?> props)
- Specified by:
getMechanismNames
in interfaceSaslServerFactory
- Overrides:
getMechanismNames
in classAbstractDelegatingSaslServerFactory
-
-