public final class ServerNameSaslServerFactory extends AbstractDelegatingSaslServerFactory
SaslServerFactory
which sets the server name to a fixed value, disregarding the passed in value.delegate
Constructor and Description |
---|
ServerNameSaslServerFactory(SaslServerFactory delegate,
String serverName)
Construct a new instance.
|
Modifier and Type | Method and Description |
---|---|
SaslServer |
createSaslServer(String mechanism,
String protocol,
String serverName,
Map<String,?> props,
CallbackHandler cbh) |
delegatesThrough, getMechanismNames, toString
public ServerNameSaslServerFactory(SaslServerFactory delegate, String serverName)
delegate
- the delegate server factoryserverName
- the server name to usepublic SaslServer createSaslServer(String mechanism, String protocol, String serverName, Map<String,?> props, CallbackHandler cbh) throws SaslException
createSaslServer
in interface SaslServerFactory
createSaslServer
in class AbstractDelegatingSaslServerFactory
SaslException
Copyright © 2020 JBoss by Red Hat. All rights reserved.