Package org.wildfly.security.sasl.util
Class AbstractDelegatingSaslServerFactory
- java.lang.Object
 - 
- org.wildfly.security.sasl.util.AbstractDelegatingSaslServerFactory
 
 
- 
- All Implemented Interfaces:
 SaslServerFactory
- Direct Known Subclasses:
 AuthenticationCompleteCallbackSaslServerFactory,AuthenticationContextSaslServerFactory,AuthenticationContextSaslServerFactory,AuthenticationTimeoutSaslServerFactory,AvailableRealmsSaslServerFactory,ChannelBindingSaslServerFactory,CredentialSaslServerFactory,DisposedCallbackSaslServerFactory,FilterMechanismSaslServerFactory,KeyManagerCredentialSaslServerFactory,LegacyRealmListSaslServerFactory,MechanismProviderFilteringSaslServerFactory,PrivilegedSaslServerFactory,PropertiesSaslServerFactory,ProtocolSaslServerFactory,SecurityIdentitySaslServerFactory,ServerNameSaslServerFactory,SetMechanismInformationSaslServerFactory,SocketAddressCallbackSaslServerFactory,SortedMechanismSaslServerFactory,SSLSaslServerFactory,TLSServerEndPointChannelBindingSaslServerFactory,TrustManagerSaslServerFactory
public abstract class AbstractDelegatingSaslServerFactory extends Object implements SaslServerFactory
An abstract base forSaslServerFactoryinstances which delegate to anotherSaslServerFactory.- Author:
 - David M. Lloyd
 
 
- 
- 
Field Summary
Fields Modifier and Type Field Description protected SaslServerFactorydelegateThe delegateSaslServerFactory. 
- 
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractDelegatingSaslServerFactory(SaslServerFactory delegate)Construct a new instance. 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SaslServercreateSaslServer(String mechanism, String protocol, String serverName, Map<String,?> props, CallbackHandler cbh)booleandelegatesThrough(Class<? extends SaslServerFactory> factoryClass)Determine whether this chain of delegating factories delegates through an instance of the given class.String[]getMechanismNames(Map<String,?> props)StringtoString() 
 - 
 
- 
- 
Field Detail
- 
delegate
protected final SaslServerFactory delegate
The delegateSaslServerFactory. 
 - 
 
- 
Constructor Detail
- 
AbstractDelegatingSaslServerFactory
protected AbstractDelegatingSaslServerFactory(SaslServerFactory delegate)
Construct a new instance.- Parameters:
 delegate- the delegate server factory
 
 - 
 
- 
Method Detail
- 
delegatesThrough
public final boolean delegatesThrough(Class<? extends SaslServerFactory> factoryClass)
Determine whether this chain of delegating factories delegates through an instance of the given class.- Parameters:
 factoryClass- the SASL server factory class- Returns:
 trueif this chain delegates through the factory class,falseotherwise
 
- 
createSaslServer
public SaslServer createSaslServer(String mechanism, String protocol, String serverName, Map<String,?> props, CallbackHandler cbh) throws SaslException
- Specified by:
 createSaslServerin interfaceSaslServerFactory- Throws:
 SaslException
 
- 
getMechanismNames
public String[] getMechanismNames(Map<String,?> props)
- Specified by:
 getMechanismNamesin interfaceSaslServerFactory
 
 - 
 
 -