Package org.wildfly.security.sasl.util
Class LocalPrincipalSaslClientFactory
- java.lang.Object
-
- org.wildfly.security.sasl.util.AbstractDelegatingSaslClientFactory
-
- org.wildfly.security.sasl.util.LocalPrincipalSaslClientFactory
-
- All Implemented Interfaces:
SaslClientFactory
public final class LocalPrincipalSaslClientFactory extends AbstractDelegatingSaslClientFactory
A delegating SASL client factory whose instances can track and return the assumed principal used for authentication. Use theWildFlySasl.PRINCIPAL
negotiated property to retrieve the principal.- Author:
- David M. Lloyd
-
-
Field Summary
-
Fields inherited from class org.wildfly.security.sasl.util.AbstractDelegatingSaslClientFactory
delegate
-
-
Constructor Summary
Constructors Constructor Description LocalPrincipalSaslClientFactory(SaslClientFactory delegate)
Construct a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SaslClient
createSaslClient(String[] mechanisms, String authorizationId, String protocol, String serverName, Map<String,?> props, CallbackHandler cbh)
-
Methods inherited from class org.wildfly.security.sasl.util.AbstractDelegatingSaslClientFactory
calculateHashCode, delegatesThrough, equals, equals, getMechanismNames, hashCode, toString
-
-
-
-
Constructor Detail
-
LocalPrincipalSaslClientFactory
public LocalPrincipalSaslClientFactory(SaslClientFactory delegate)
Construct a new instance.- Parameters:
delegate
- the delegate client factory (must not benull
)
-
-
Method Detail
-
createSaslClient
public SaslClient createSaslClient(String[] mechanisms, String authorizationId, String protocol, String serverName, Map<String,?> props, CallbackHandler cbh) throws SaslException
- Specified by:
createSaslClient
in interfaceSaslClientFactory
- Overrides:
createSaslClient
in classAbstractDelegatingSaslClientFactory
- Throws:
SaslException
-
-