Package org.wildfly.security.sasl.util
Class SocketAddressCallbackSaslServerFactory
- java.lang.Object
-
- org.wildfly.security.sasl.util.AbstractDelegatingSaslServerFactory
-
- org.wildfly.security.sasl.util.SocketAddressCallbackSaslServerFactory
-
- All Implemented Interfaces:
SaslServerFactory
public final class SocketAddressCallbackSaslServerFactory extends AbstractDelegatingSaslServerFactory
- Author:
- David M. Lloyd
-
-
Field Summary
Fields Modifier and Type Field Description private SocketAddress
localAddress
private SocketAddress
peerAddress
-
Fields inherited from class org.wildfly.security.sasl.util.AbstractDelegatingSaslServerFactory
delegate
-
-
Constructor Summary
Constructors Constructor Description SocketAddressCallbackSaslServerFactory(SaslServerFactory delegate, SocketAddress localAddress, SocketAddress peerAddress)
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
-
localAddress
private final SocketAddress localAddress
-
peerAddress
private final SocketAddress peerAddress
-
-
Constructor Detail
-
SocketAddressCallbackSaslServerFactory
public SocketAddressCallbackSaslServerFactory(SaslServerFactory delegate, SocketAddress localAddress, SocketAddress peerAddress)
Construct a new instance.- Parameters:
delegate
- the delegate server factorylocalAddress
- the local socket address, ornull
if unknownpeerAddress
- the peer socket address, ornull
if unknown
-
-
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
-
-