Package org.wildfly.security.sasl.util
Class ProtocolSaslServerFactory
- java.lang.Object
-
- org.wildfly.security.sasl.util.AbstractDelegatingSaslServerFactory
-
- org.wildfly.security.sasl.util.ProtocolSaslServerFactory
-
- All Implemented Interfaces:
SaslServerFactory
public final class ProtocolSaslServerFactory extends AbstractDelegatingSaslServerFactory
ASaslServerFactory
which sets the protocol 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
Constructors Constructor Description ProtocolSaslServerFactory(SaslServerFactory delegate, String protocol)
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, getMechanismNames, toString
-
-
-
-
Constructor Detail
-
ProtocolSaslServerFactory
public ProtocolSaslServerFactory(SaslServerFactory delegate, String protocol)
Construct a new instance.- Parameters:
delegate
- the delegate server factoryprotocol
- the protocol 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
-
-