Class SSLSaslServerFactory
java.lang.Object
org.wildfly.security.sasl.util.AbstractDelegatingSaslServerFactory
org.wildfly.security.sasl.util.SSLSaslServerFactory
- All Implemented Interfaces:
SaslServerFactory
public final class SSLSaslServerFactory
extends AbstractDelegatingSaslServerFactory
implements SaslServerFactory
A SASL server 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 AbstractDelegatingSaslServerFactory
delegate -
Constructor Summary
ConstructorsConstructorDescriptionSSLSaslServerFactory(Supplier<org.wildfly.security.ssl.SSLConnection> sslConnectionSupplier, SaslServerFactory delegate) Construct a new instance.SSLSaslServerFactory(SaslServerFactory delegate, Supplier<SSLSession> sslSession) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptioncreateSaslServer(String mechanism, String protocol, String serverName, Map<String, ?> props, CallbackHandler cbh) Methods inherited from class AbstractDelegatingSaslServerFactory
delegatesThrough, getMechanismNames, toStringMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface SaslServerFactory
getMechanismNames
-
Constructor Details
-
SSLSaslServerFactory
public SSLSaslServerFactory(Supplier<org.wildfly.security.ssl.SSLConnection> sslConnectionSupplier, SaslServerFactory delegate) Construct a new instance.- Parameters:
sslConnectionSupplier- supplier for the current SSL connectiondelegate- the delegate SASL server factory
-
SSLSaslServerFactory
@Deprecated public SSLSaslServerFactory(SaslServerFactory delegate, Supplier<SSLSession> sslSession) Deprecated.UseSSLSaslServerFactory(Supplier, SaslServerFactory)to avoid problems where a TLS server is acting as a SASL client.Construct a new instance. The session connection is assumed to be in server mode.- Parameters:
delegate- the delegate SASL server factorysslSession- supplier for the current SSL session
-
-
Method Details
-
createSaslServer
public SaslServer createSaslServer(String mechanism, String protocol, String serverName, Map<String, ?> props, CallbackHandler cbh) throws SaslException- Specified by:
createSaslServerin interfaceSaslServerFactory- Overrides:
createSaslServerin classAbstractDelegatingSaslServerFactory- Throws:
SaslException
-
SSLSaslServerFactory(Supplier, SaslServerFactory)to avoid problems where a TLS server is acting as a SASL client.