Package org.wildfly.security.sasl.util
Class KeyManagerCredentialSaslServerFactory
- java.lang.Object
-
- org.wildfly.security.sasl.util.AbstractDelegatingSaslServerFactory
-
- org.wildfly.security.sasl.util.KeyManagerCredentialSaslServerFactory
-
- All Implemented Interfaces:
SaslServerFactory
public final class KeyManagerCredentialSaslServerFactory extends AbstractDelegatingSaslServerFactory
ASaslServerFactory
which sets the server's credential using the given key manager.- Author:
- Farah Juma
-
-
Field Summary
Fields Modifier and Type Field Description private SecurityFactory<X509KeyManager>
keyManagerFactory
-
Fields inherited from class org.wildfly.security.sasl.util.AbstractDelegatingSaslServerFactory
delegate
-
-
Constructor Summary
Constructors Constructor Description KeyManagerCredentialSaslServerFactory(SaslServerFactory delegate, X509KeyManager keyManager)
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
-
keyManagerFactory
private final SecurityFactory<X509KeyManager> keyManagerFactory
-
-
Constructor Detail
-
KeyManagerCredentialSaslServerFactory
public KeyManagerCredentialSaslServerFactory(SaslServerFactory delegate, X509KeyManager keyManager)
Construct a new instance.- Parameters:
delegate
- the delegate SASL server factorykeyManager
- the key manager to use (must not benull
)
-
-
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
-
-