/** * Construct a new instance. * * @param delegate the delegate SASL client factory * @param sslSession supplier of the current SSLSession * @deprecated Use {@link #SSLSaslClientFactory(Supplier, SaslClientFactory)} to avoid problems where a TLS client is acting as a SASL server. */ public SSLSaslClientFactory(final SaslClientFactory delegate, final Supplier<SSLSession> sslSession) { this(() -> SSLConnection.forSession(sslSession.get(), true), delegate); }
/** * Construct a new instance. The session connection is assumed to be in server mode. * * @param sslSession supplier for the current SSL session * @param delegate the delegate SASL server factory * @deprecated Use {@link #SSLSaslServerFactory(Supplier, SaslServerFactory)} to avoid problems where a TLS server is acting as a SASL client. */ @Deprecated public SSLSaslServerFactory(final SaslServerFactory delegate, final Supplier<SSLSession> sslSession) { this(() -> SSLConnection.forSession(sslSession.get(), false), delegate); }
saslClientFactory = new SSLSaslClientFactory(() -> SSLConnection.forSession(sslSession, true), saslClientFactory);
/** * Construct a new instance. * * @param delegate the delegate SASL client factory * @param sslSession supplier of the current SSLSession * @deprecated Use {@link #SSLSaslClientFactory(Supplier, SaslClientFactory)} to avoid problems where a TLS client is acting as a SASL server. */ public SSLSaslClientFactory(final SaslClientFactory delegate, final Supplier<SSLSession> sslSession) { this(() -> SSLConnection.forSession(sslSession.get(), true), delegate); }
/** * Construct a new instance. * * @param delegate the delegate SASL client factory * @param sslSession supplier of the current SSLSession * @deprecated Use {@link #SSLSaslClientFactory(Supplier, SaslClientFactory)} to avoid problems where a TLS client is acting as a SASL server. */ public SSLSaslClientFactory(final SaslClientFactory delegate, final Supplier<SSLSession> sslSession) { this(() -> SSLConnection.forSession(sslSession.get(), true), delegate); }
/** * Construct a new instance. * * @param delegate the delegate SASL client factory * @param sslSession supplier of the current SSLSession * @deprecated Use {@link #SSLSaslClientFactory(Supplier, SaslClientFactory)} to avoid problems where a TLS client is acting as a SASL server. */ public SSLSaslClientFactory(final SaslClientFactory delegate, final Supplier<SSLSession> sslSession) { this(() -> SSLConnection.forSession(sslSession.get(), true), delegate); }
/** * Construct a new instance. The session connection is assumed to be in server mode. * * @param sslSession supplier for the current SSL session * @param delegate the delegate SASL server factory * @deprecated Use {@link #SSLSaslServerFactory(Supplier, SaslServerFactory)} to avoid problems where a TLS server is acting as a SASL client. */ @Deprecated public SSLSaslServerFactory(final SaslServerFactory delegate, final Supplier<SSLSession> sslSession) { this(() -> SSLConnection.forSession(sslSession.get(), false), delegate); }
/** * Construct a new instance. The session connection is assumed to be in server mode. * * @param sslSession supplier for the current SSL session * @param delegate the delegate SASL server factory * @deprecated Use {@link #SSLSaslServerFactory(Supplier, SaslServerFactory)} to avoid problems where a TLS server is acting as a SASL client. */ @Deprecated public SSLSaslServerFactory(final SaslServerFactory delegate, final Supplier<SSLSession> sslSession) { this(() -> SSLConnection.forSession(sslSession.get(), false), delegate); }
/** * Construct a new instance. The session connection is assumed to be in server mode. * * @param sslSession supplier for the current SSL session * @param delegate the delegate SASL server factory * @deprecated Use {@link #SSLSaslServerFactory(Supplier, SaslServerFactory)} to avoid problems where a TLS server is acting as a SASL client. */ @Deprecated public SSLSaslServerFactory(final SaslServerFactory delegate, final Supplier<SSLSession> sslSession) { this(() -> SSLConnection.forSession(sslSession.get(), false), delegate); }
saslClientFactory = new SSLSaslClientFactory(() -> SSLConnection.forSession(sslSession, true), saslClientFactory);
saslClientFactory = new SSLSaslClientFactory(() -> SSLConnection.forSession(sslSession, true), saslClientFactory);
saslClientFactory = new SSLSaslClientFactory(() -> SSLConnection.forSession(sslSession, true), saslClientFactory);