Package org.wildfly.security.sasl.util
Class SortedMechanismClientServerFactory
java.lang.Object
org.wildfly.security.sasl.util.AbstractDelegatingSaslClientFactory
org.wildfly.security.sasl.util.SortedMechanismClientServerFactory
- All Implemented Interfaces:
SaslClientFactory
A delegating
SaslClientFactory which will sort the mechanism names using either a supplied Comparator<String>
or a supplied ordering of mechanism names.- Author:
- Darran Lofthouse
-
Field Summary
Fields inherited from class org.wildfly.security.sasl.util.AbstractDelegatingSaslClientFactory
delegate -
Constructor Summary
ConstructorsConstructorDescriptionSortedMechanismClientServerFactory(SaslClientFactory delegate, String... mechanismNames) SortedMechanismClientServerFactory(SaslClientFactory delegate, Comparator<String> mechanismNameComparator) -
Method Summary
Modifier and TypeMethodDescriptionprotected intPerform the calculation of the hash code of this factory.createSaslClient(String[] mechanisms, String authorizationId, String protocol, String serverName, Map<String, ?> props, CallbackHandler cbh) booleanbooleanbooleanString[]getMechanismNames(Map<String, ?> props) Methods inherited from class org.wildfly.security.sasl.util.AbstractDelegatingSaslClientFactory
delegatesThrough, hashCode, toString
-
Constructor Details
-
SortedMechanismClientServerFactory
public SortedMechanismClientServerFactory(SaslClientFactory delegate, Comparator<String> mechanismNameComparator) -
SortedMechanismClientServerFactory
-
-
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- Overrides:
createSaslClientin classAbstractDelegatingSaslClientFactory- Throws:
SaslException
-
getMechanismNames
- Specified by:
getMechanismNamesin interfaceSaslClientFactory- Overrides:
getMechanismNamesin classAbstractDelegatingSaslClientFactory
-
equals
- Overrides:
equalsin classAbstractDelegatingSaslClientFactory
-
equals
- Overrides:
equalsin classAbstractDelegatingSaslClientFactory
-
equals
-
calculateHashCode
protected int calculateHashCode()Description copied from class:AbstractDelegatingSaslClientFactoryPerform the calculation of the hash code of this factory.- Overrides:
calculateHashCodein classAbstractDelegatingSaslClientFactory- Returns:
- the calculated hash code
-