public final class TrustManagerSaslServerFactory extends AbstractDelegatingSaslServerFactory
SaslServerFactory
which sets the trust manager that should be used for trust verification.delegate
Constructor and Description |
---|
TrustManagerSaslServerFactory(SaslServerFactory delegate,
X509TrustManager trustManager)
Construct a new instance.
|
Modifier and Type | Method and Description |
---|---|
SaslServer |
createSaslServer(String mechanism,
String protocol,
String serverName,
Map<String,?> props,
CallbackHandler cbh) |
delegatesThrough, getMechanismNames, toString
public TrustManagerSaslServerFactory(SaslServerFactory delegate, X509TrustManager trustManager)
delegate
- the delegate SASL server factorytrustManager
- the trust manager to use or null
if the default trust manager should be usedpublic SaslServer createSaslServer(String mechanism, String protocol, String serverName, Map<String,?> props, CallbackHandler cbh) throws SaslException
createSaslServer
in interface SaslServerFactory
createSaslServer
in class AbstractDelegatingSaslServerFactory
SaslException
Copyright © 2020 JBoss by Red Hat. All rights reserved.