Package org.wildfly.security.sasl.util
Class SSLSaslClientFactory
java.lang.Object
org.wildfly.security.sasl.util.AbstractDelegatingSaslClientFactory
org.wildfly.security.sasl.util.SSLSaslClientFactory
- All Implemented Interfaces:
SaslClientFactory
public final class SSLSaslClientFactory
extends AbstractDelegatingSaslClientFactory
implements SaslClientFactory
A SASL client factory which provides information about the security layer of the connection to the callback handler.
- Author:
- David M. Lloyd
-
Field Summary
Fields inherited from class org.wildfly.security.sasl.util.AbstractDelegatingSaslClientFactory
delegate -
Constructor Summary
ConstructorsConstructorDescriptionSSLSaslClientFactory(Supplier<SSLConnection> sslConnectionSupplier, SaslClientFactory delegate) Construct a new instance.SSLSaslClientFactory(SaslClientFactory delegate, Supplier<SSLSession> sslSession) Deprecated. -
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) booleanbooleanbooleanequals(SSLSaslClientFactory other) Methods inherited from class org.wildfly.security.sasl.util.AbstractDelegatingSaslClientFactory
delegatesThrough, getMechanismNames, hashCode, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface javax.security.sasl.SaslClientFactory
getMechanismNames
-
Constructor Details
-
SSLSaslClientFactory
public SSLSaslClientFactory(Supplier<SSLConnection> sslConnectionSupplier, SaslClientFactory delegate) Construct a new instance.- Parameters:
sslConnectionSupplier- supplier of the current SSL connectiondelegate- the delegate SASL client factory
-
SSLSaslClientFactory
Deprecated.UseSSLSaslClientFactory(Supplier, SaslClientFactory)to avoid problems where a TLS client is acting as a SASL server.Construct a new instance.- Parameters:
delegate- the delegate SASL client factorysslSession- supplier of the current SSLSession
-
-
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
-
SSLSaslClientFactory(Supplier, SaslClientFactory)to avoid problems where a TLS client is acting as a SASL server.