Package org.wildfly.security.sasl.util
Class PropertiesSaslClientFactory
- java.lang.Object
-
- org.wildfly.security.sasl.util.AbstractDelegatingSaslClientFactory
-
- org.wildfly.security.sasl.util.PropertiesSaslClientFactory
-
- All Implemented Interfaces:
SaslClientFactory
public class PropertiesSaslClientFactory extends AbstractDelegatingSaslClientFactory
ASaslClientFactory
that allows properties to be added to a delegateSaslClientFactory
.- Author:
- Kabir Khan
-
-
Field Summary
Fields Modifier and Type Field Description private Map<String,?>
properties
-
Fields inherited from class org.wildfly.security.sasl.util.AbstractDelegatingSaslClientFactory
delegate
-
-
Constructor Summary
Constructors Constructor Description PropertiesSaslClientFactory(SaslClientFactory delegate, Map<String,?> properties)
Constructor
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected int
calculateHashCode()
Perform the calculation of the hash code of this factory.private static Map<String,?>
combine(Map<String,?> provided, Map<String,?> configured)
SaslClient
createSaslClient(String[] mechanisms, String authorizationId, String protocol, String serverName, Map<String,?> props, CallbackHandler cbh)
boolean
equals(Object other)
boolean
equals(AbstractDelegatingSaslClientFactory other)
boolean
equals(PropertiesSaslClientFactory other)
String[]
getMechanismNames(Map<String,?> props)
-
Methods inherited from class org.wildfly.security.sasl.util.AbstractDelegatingSaslClientFactory
delegatesThrough, delegatesThroughNN, hashCode, toString
-
-
-
-
Constructor Detail
-
PropertiesSaslClientFactory
public PropertiesSaslClientFactory(SaslClientFactory delegate, Map<String,?> properties)
Constructor- Parameters:
delegate
- the underlyingSaslClientFactory
properties
- the properties
-
-
Method Detail
-
getMechanismNames
public String[] getMechanismNames(Map<String,?> props)
- Specified by:
getMechanismNames
in interfaceSaslClientFactory
- Overrides:
getMechanismNames
in classAbstractDelegatingSaslClientFactory
-
createSaslClient
public SaslClient createSaslClient(String[] mechanisms, String authorizationId, String protocol, String serverName, Map<String,?> props, CallbackHandler cbh) throws SaslException
- Specified by:
createSaslClient
in interfaceSaslClientFactory
- Overrides:
createSaslClient
in classAbstractDelegatingSaslClientFactory
- Throws:
SaslException
-
equals
public boolean equals(Object other)
- Overrides:
equals
in classAbstractDelegatingSaslClientFactory
-
equals
public boolean equals(AbstractDelegatingSaslClientFactory other)
- Overrides:
equals
in classAbstractDelegatingSaslClientFactory
-
equals
public boolean equals(PropertiesSaslClientFactory other)
-
calculateHashCode
protected int calculateHashCode()
Description copied from class:AbstractDelegatingSaslClientFactory
Perform the calculation of the hash code of this factory.- Overrides:
calculateHashCode
in classAbstractDelegatingSaslClientFactory
- Returns:
- the calculated hash code
-
-