Package org.wildfly.security.sasl.util
Class ServerNameSaslServerFactory
java.lang.Object
org.wildfly.security.sasl.util.AbstractDelegatingSaslServerFactory
org.wildfly.security.sasl.util.ServerNameSaslServerFactory
- All Implemented Interfaces:
SaslServerFactory
A
SaslServerFactory which sets the server name to a fixed value, disregarding the passed in value.- Author:
- David M. Lloyd
-
Field Summary
Fields inherited from class org.wildfly.security.sasl.util.AbstractDelegatingSaslServerFactory
delegate -
Constructor Summary
ConstructorsConstructorDescriptionServerNameSaslServerFactory(SaslServerFactory delegate, String serverName) 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
-
ServerNameSaslServerFactory
Construct a new instance.- Parameters:
delegate- the delegate server factoryserverName- the server name 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
-