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,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 forSaslClientFactoryinstances which delegate to anotherSaslClientFactory.- Author:
 - David M. Lloyd
 
 
- 
- 
Field Summary
Fields Modifier and Type Field Description protected SaslClientFactorydelegateThe delegateSaslClientFactory. 
- 
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractDelegatingSaslClientFactory(SaslClientFactory delegate)Construct a new instance. 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected intcalculateHashCode()Perform the calculation of the hash code of this factory.SaslClientcreateSaslClient(String[] mechanisms, String authorizationId, String protocol, String serverName, Map<String,?> props, CallbackHandler cbh)booleandelegatesThrough(Class<? extends SaslClientFactory> factoryClass)Determine whether this chain of delegating factories delegates through an instance of the given class.booleanequals(Object other)booleanequals(AbstractDelegatingSaslClientFactory other)String[]getMechanismNames(Map<String,?> props)inthashCode()StringtoString() 
 - 
 
- 
- 
Field Detail
- 
delegate
protected final SaslClientFactory delegate
The delegateSaslClientFactory. 
 - 
 
- 
Constructor Detail
- 
AbstractDelegatingSaslClientFactory
protected AbstractDelegatingSaslClientFactory(SaslClientFactory delegate)
Construct a new instance.- Parameters:
 delegate- the delegate client factory
 
 - 
 
- 
Method Detail
- 
delegatesThrough
public final boolean delegatesThrough(Class<? extends SaslClientFactory> factoryClass)
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
public String[] getMechanismNames(Map<String,?> props)
- Specified by:
 getMechanismNamesin interfaceSaslClientFactory
 
- 
equals
public boolean equals(AbstractDelegatingSaslClientFactory other)
 
- 
calculateHashCode
protected int calculateHashCode()
Perform the calculation of the hash code of this factory.- Returns:
 - the calculated hash code
 
 
 - 
 
 -