Class AuthenticationContextSaslServerFactory
java.lang.Object
org.wildfly.security.sasl.util.AbstractDelegatingSaslServerFactory
org.wildfly.security.sasl.auth.util.AuthenticationContextSaslServerFactory
- All Implemented Interfaces:
SaslServerFactory
public final class AuthenticationContextSaslServerFactory
extends AbstractDelegatingSaslServerFactory
A delegating
SaslServerFactory which establishes a specific AuthenticationContext for the duration
of the authentication process.- Author:
- David M. Lloyd
-
Field Summary
Fields inherited from class org.wildfly.security.sasl.util.AbstractDelegatingSaslServerFactory
delegate -
Constructor Summary
ConstructorsConstructorDescriptionConstruct a new instance.AuthenticationContextSaslServerFactory(SaslServerFactory delegate, AuthenticationContext context) Construct a new instance. -
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, toString
-
Constructor Details
-
AuthenticationContextSaslServerFactory
Construct a new instance.- Parameters:
delegate- the delegate SASL server factory
-
AuthenticationContextSaslServerFactory
public AuthenticationContextSaslServerFactory(SaslServerFactory delegate, AuthenticationContext context) Construct a new instance.- Parameters:
delegate- the delegate SASL server factorycontext- the authentication context to use
-
-
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
-