Package org.wildfly.security.sasl.util
Class PrivilegedSaslServerFactory
- java.lang.Object
-
- org.wildfly.security.sasl.util.AbstractDelegatingSaslServerFactory
-
- org.wildfly.security.sasl.util.PrivilegedSaslServerFactory
-
- All Implemented Interfaces:
SaslServerFactory
public final class PrivilegedSaslServerFactory extends AbstractDelegatingSaslServerFactory
ASaslServerFactory
whoseSaslServer
instances evaluate challenges and wrap/unwrap requests in a privileged context.- Author:
- David M. Lloyd
-
-
Field Summary
Fields Modifier and Type Field Description private AccessControlContext
context
-
Fields inherited from class org.wildfly.security.sasl.util.AbstractDelegatingSaslServerFactory
delegate
-
-
Constructor Summary
Constructors Constructor Description PrivilegedSaslServerFactory(SaslServerFactory delegate)
Construct a new instance.PrivilegedSaslServerFactory(SaslServerFactory delegate, AccessControlContext context)
-
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
-
context
private final AccessControlContext context
-
-
Constructor Detail
-
PrivilegedSaslServerFactory
public PrivilegedSaslServerFactory(SaslServerFactory delegate)
Construct a new instance.- Parameters:
delegate
- the delegate SASL server factory
-
PrivilegedSaslServerFactory
PrivilegedSaslServerFactory(SaslServerFactory delegate, AccessControlContext context)
-
-
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
-
-