}
}
}
SSLFilter sslFilter = null;
if (supportsTls) {
sslFilter = new SSLFilter(factory.newInstance());
sslFilter.setWantClientAuth(wantClientAuth);
sslFilter.setNeedClientAuth(needClientAuth);
sslFilter.setUseClientMode(!isServer);
String[] cipherSuites = allowedCipherSuites == null || "".equals(allowedCipherSuites.trim()) ? null : allowedCipherSuites.split(",");
if (cipherSuites != null) {