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 SummaryFields Modifier and Type Field Description protected SaslClientFactorydelegateThe delegateSaslClientFactory.
 - 
Constructor SummaryConstructors Modifier Constructor Description protectedAbstractDelegatingSaslClientFactory(SaslClientFactory delegate)Construct a new instance.
 - 
Method SummaryAll 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- 
delegateprotected final SaslClientFactory delegate The delegateSaslClientFactory.
 
- 
 - 
Constructor Detail- 
AbstractDelegatingSaslClientFactoryprotected AbstractDelegatingSaslClientFactory(SaslClientFactory delegate) Construct a new instance.- Parameters:
- delegate- the delegate client factory
 
 
- 
 - 
Method Detail- 
delegatesThroughpublic 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
 
 - 
createSaslClientpublic SaslClient createSaslClient(String[] mechanisms, String authorizationId, String protocol, String serverName, Map<String,?> props, CallbackHandler cbh) throws SaslException - Specified by:
- createSaslClientin interface- SaslClientFactory
- Throws:
- SaslException
 
 - 
getMechanismNamespublic String[] getMechanismNames(Map<String,?> props) - Specified by:
- getMechanismNamesin interface- SaslClientFactory
 
 - 
equalspublic boolean equals(AbstractDelegatingSaslClientFactory other) 
 - 
calculateHashCodeprotected int calculateHashCode() Perform the calculation of the hash code of this factory.- Returns:
- the calculated hash code
 
 
- 
 
-