FileDocCategorySizeDatePackage
CipherSuiteLister.javaAPI DocExample799Thu Nov 08 00:23:28 GMT 2001com.ora.rmibook.chapter2.ssl

CipherSuiteLister

public class CipherSuiteLister extends Object

Fields Summary
Constructors Summary
Methods Summary
public static voidmain(java.lang.String[] args)

        try {
            java.security.Security.addProvider(new com.sun.net.ssl.internal.ssl.Provider());
            SSLServerSocketFactory socketFactory = (SSLServerSocketFactory) SSLServerSocketFactory.getDefault();
            String[] suites = socketFactory.getSupportedCipherSuites();

            System.out.println("Supported cipher suites:");
            for (int counter = 0; counter < suites.length; counter++) {
                System.out.println("\t" + suites[counter]);
            }
        } catch (Exception ignored) {
            ignored.printStackTrace();
        }