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 forSaslClientFactory
instances which delegate to anotherSaslClientFactory
.- Author:
- David M. Lloyd
-
-
Field Summary
Fields Modifier and Type Field Description protected SaslClientFactory
delegate
The delegateSaslClientFactory
.private int
hashCode
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractDelegatingSaslClientFactory(SaslClientFactory delegate)
Construct a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected int
calculateHashCode()
Perform the calculation of the hash code of this factory.SaslClient
createSaslClient(String[] mechanisms, String authorizationId, String protocol, String serverName, Map<String,?> props, CallbackHandler cbh)
boolean
delegatesThrough(Class<? extends SaslClientFactory> factoryClass)
Determine whether this chain of delegating factories delegates through an instance of the given class.(package private) boolean
delegatesThroughNN(Class<? extends SaslClientFactory> factoryClass)
boolean
equals(Object other)
boolean
equals(AbstractDelegatingSaslClientFactory other)
String[]
getMechanismNames(Map<String,?> props)
int
hashCode()
String
toString()
-
-
-
Field Detail
-
delegate
protected final SaslClientFactory delegate
The delegateSaslClientFactory
.
-
hashCode
private int hashCode
-
-
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:
true
if this chain delegates through the factory class,false
otherwise
-
delegatesThroughNN
boolean delegatesThroughNN(Class<? extends SaslClientFactory> factoryClass)
-
createSaslClient
public SaslClient createSaslClient(String[] mechanisms, String authorizationId, String protocol, String serverName, Map<String,?> props, CallbackHandler cbh) throws SaslException
- Specified by:
createSaslClient
in interfaceSaslClientFactory
- Throws:
SaslException
-
getMechanismNames
public String[] getMechanismNames(Map<String,?> props)
- Specified by:
getMechanismNames
in 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
-
-