Created
December 11, 2017 22:17
-
-
Save jkutner/1fc15072347015e7f7e19e3ead86affd to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import javax.net.ssl.SSLSocketFactory; | |
import javax.net.ssl.SSLContext; | |
public class SSLTest { | |
public static void main (String[] args) throws Exception { | |
SSLContext context = SSLContext.getDefault(); | |
SSLSocketFactory sf = context.getSocketFactory(); | |
String[] cipherSuites = sf.getSupportedCipherSuites(); | |
System.out.println("CipherSuite:"); | |
for (String cipher : cipherSuites) { | |
System.out.println(" " + cipher); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment