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
public final class ServerNameSaslServerFactory extends AbstractDelegatingSaslServerFactory
ASaslServerFactory
which sets the server name to a fixed value, disregarding the passed in value.- Author:
- David M. Lloyd
-
-
Field Summary
Fields Modifier and Type Field Description private String
serverName
-
Fields inherited from class org.wildfly.security.sasl.util.AbstractDelegatingSaslServerFactory
delegate
-
-
Constructor Summary
Constructors Constructor Description ServerNameSaslServerFactory(SaslServerFactory delegate, String serverName)
Construct a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SaslServer
createSaslServer(String mechanism, String protocol, String serverName, Map<String,?> props, CallbackHandler cbh)
-
Methods inherited from class org.wildfly.security.sasl.util.AbstractDelegatingSaslServerFactory
delegatesThrough, delegatesThroughNN, getMechanismNames, toString
-
-
-
-
Field Detail
-
serverName
private final String serverName
-
-
Constructor Detail
-
ServerNameSaslServerFactory
public ServerNameSaslServerFactory(SaslServerFactory delegate, String serverName)
Construct a new instance.- Parameters:
delegate
- the delegate server factoryserverName
- the server name to use
-
-
Method Detail
-
createSaslServer
public SaslServer createSaslServer(String mechanism, String protocol, String serverName, Map<String,?> props, CallbackHandler cbh) throws SaslException
- Specified by:
createSaslServer
in interfaceSaslServerFactory
- Overrides:
createSaslServer
in classAbstractDelegatingSaslServerFactory
- Throws:
SaslException
-
-