Package org.wildfly.security.sasl.util
Class AbstractDelegatingSaslClientFactory
java.lang.Object
org.wildfly.security.sasl.util.AbstractDelegatingSaslClientFactory
- All Implemented Interfaces:
SaslClientFactory
- Direct Known Subclasses:
AuthenticationCompleteCallbackSaslClientFactory,AuthenticationContextSaslClientFactory,ChannelBindingSaslClientFactory,DisposedCallbackSaslClientFactory,FilterMechanismSaslClientFactory,LocalPrincipalSaslClientFactory,MechanismProviderFilteringSaslClientFactory,PrivilegedSaslClientFactory,PropertiesSaslClientFactory,ProtocolSaslClientFactory,ServerNameSaslClientFactory,SocketAddressCallbackSaslClientFactory,SortedMechanismClientServerFactory,SSLSaslClientFactory,TLSServerEndPointChannelBindingSaslClientFactory
public abstract class AbstractDelegatingSaslClientFactory
extends Object
implements SaslClientFactory
An abstract base for
SaslClientFactory instances which delegate to another SaslClientFactory.- Author:
- David M. Lloyd
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final SaslClientFactoryThe delegateSaslClientFactory. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedConstruct a new instance. -
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) final booleandelegatesThrough(Class<? extends SaslClientFactory> factoryClass) Determine whether this chain of delegating factories delegates through an instance of the given class.booleanbooleanString[]getMechanismNames(Map<String, ?> props) final inthashCode()toString()
-
Field Details
-
delegate
The delegateSaslClientFactory.
-
-
Constructor Details
-
AbstractDelegatingSaslClientFactory
Construct a new instance.- Parameters:
delegate- the delegate client factory
-
-
Method Details
-
delegatesThrough
Determine whether this chain of delegating factories delegates through an instance of the given class.- Parameters:
factoryClass- the SASL client factory class- Returns:
trueif this chain delegates through the factory class,falseotherwise
-
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
-
equals
-
equals
-
hashCode
public final int hashCode() -
calculateHashCode
protected int calculateHashCode()Perform the calculation of the hash code of this factory.- Returns:
- the calculated hash code
-
toString
-