Package org.wildfly.security.sasl.util
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 org.wildfly.security.sasl.util.AbstractDelegatingSaslServerFactory
delegate -
Constructor Summary
ConstructorsConstructorDescriptionSSLSaslServerFactory(Supplier<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 org.wildfly.security.sasl.util.AbstractDelegatingSaslServerFactory
delegatesThrough, getMechanismNames, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface javax.security.sasl.SaslServerFactory
getMechanismNames
-
Constructor Details
-
SSLSaslServerFactory
public SSLSaslServerFactory(Supplier<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:
sslSession- supplier for the current SSL sessiondelegate- the delegate SASL server factory
-
-
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.