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 forSaslServerFactory
instances which delegate to anotherSaslServerFactory
.- Author:
- David M. Lloyd
-
-
Field Summary
Fields Modifier and Type Field Description protected SaslServerFactory
delegate
The delegateSaslServerFactory
.
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractDelegatingSaslServerFactory(SaslServerFactory delegate)
Construct a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SaslServer
createSaslServer(String mechanism, String protocol, String serverName, Map<String,?> props, CallbackHandler cbh)
boolean
delegatesThrough(Class<? extends SaslServerFactory> factoryClass)
Determine whether this chain of delegating factories delegates through an instance of the given class.String[]
getMechanismNames(Map<String,?> props)
String
toString()
-
-
-
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:
true
if this chain delegates through the factory class,false
otherwise
-
createSaslServer
public SaslServer createSaslServer(String mechanism, String protocol, String serverName, Map<String,?> props, CallbackHandler cbh) throws SaslException
- Specified by:
createSaslServer
in interfaceSaslServerFactory
- Throws:
SaslException
-
getMechanismNames
public String[] getMechanismNames(Map<String,?> props)
- Specified by:
getMechanismNames
in interfaceSaslServerFactory
-
-