tracer.trace(name + ": server starting on port " + port + " ("
+ (ssl ? "SSL" : "plain text") + ")");
+ String ciphers = "";
+ for (String cipher : getAnonCiphers()) {
+ if (!ciphers.isEmpty()) {
+ ciphers += ", ";
+ }
+ ciphers += cipher;
+ }
+ tracer.trace("Available SSL ciphers: " + ciphers);
+
while (started && !exiting) {
count(1);
final Socket s = ss.accept();
*
* @return the list of such supported ciphers
*/
- private static String[] getAnonCiphers() {
+ public static String[] getAnonCiphers() {
List<String> anonCiphers = new ArrayList<String>();
for (String cipher : ((SSLSocketFactory) SSLSocketFactory.getDefault())
.getSupportedCipherSuites()) {