Package org.wildfly.security.sasl.util
Class DisposedCallbackSaslClientFactory
java.lang.Object
org.wildfly.security.sasl.util.AbstractDelegatingSaslClientFactory
org.wildfly.security.sasl.util.DisposedCallbackSaslClientFactory
- All Implemented Interfaces:
SaslClientFactory
A
SaslClientFactory which detects SaslClient disposal and calls the callback handler with a
SecurityLayerDisposedCallback instance.- Author:
- David M. Lloyd
-
Field Summary
Fields inherited from class org.wildfly.security.sasl.util.AbstractDelegatingSaslClientFactory
delegate -
Constructor Summary
ConstructorsConstructorDescriptionConstruct a new instance. -
Method Summary
Modifier and TypeMethodDescriptionprotected intPerform the calculation of the hash code of this factory.createSaslClient(String[] mechanisms, String authorizationId, String protocol, String serverName, Map<String, ?> props, CallbackHandler cbh) booleanbooleanbooleanMethods inherited from class org.wildfly.security.sasl.util.AbstractDelegatingSaslClientFactory
delegatesThrough, getMechanismNames, hashCode, toString
-
Constructor Details
-
DisposedCallbackSaslClientFactory
Construct a new instance.- Parameters:
delegate- the delegate SASL client factory
-
-
Method Details
-
createSaslClient
public SaslClient createSaslClient(String[] mechanisms, String authorizationId, String protocol, String serverName, Map<String, ?> props, CallbackHandler cbh) throws SaslException- Specified by:
createSaslClientin interfaceSaslClientFactory- Overrides:
createSaslClientin classAbstractDelegatingSaslClientFactory- Throws:
SaslException
-
equals
- Overrides:
equalsin classAbstractDelegatingSaslClientFactory
-
equals
- Overrides:
equalsin classAbstractDelegatingSaslClientFactory
-
equals
-
calculateHashCode
protected int calculateHashCode()Description copied from class:AbstractDelegatingSaslClientFactoryPerform the calculation of the hash code of this factory.- Overrides:
calculateHashCodein classAbstractDelegatingSaslClientFactory- Returns:
- the calculated hash code
-