ALT Linux Bugzilla
– Attachment 8643 Details for
Bug 38170
There is no supported cipher suites for archive.apache.org
New bug
|
Search
|
[?]
|
Help
Register
|
Log In
[x]
|
Forgot Password
Login:
[x]
|
EN
|
RU
java code to get list of available cipher suites in the system
Ciphers.java (text/x-java), 1.12 KB, created by
Alexey
on 2020-03-02 11:09:33 MSK
(
hide
)
Description:
java code to get list of available cipher suites in the system
Filename:
MIME Type:
Creator:
Alexey
Created:
2020-03-02 11:09:33 MSK
Size:
1.12 KB
patch
obsolete
>import java.util.Iterator; >import java.util.Map; >import java.util.TreeMap; >import javax.net.ssl.SSLServerSocketFactory; > >public class Ciphers >{ > public static void main(String[] args) > throws Exception > { > SSLServerSocketFactory ssf = (SSLServerSocketFactory)SSLServerSocketFactory.getDefault(); > > String[] defaultCiphers = ssf.getDefaultCipherSuites(); > String[] availableCiphers = ssf.getSupportedCipherSuites(); > > TreeMap ciphers = new TreeMap(); > > for(int i=0; i<availableCiphers.length; ++i ) > ciphers.put(availableCiphers[i], Boolean.FALSE); > > for(int i=0; i<defaultCiphers.length; ++i ) > ciphers.put(defaultCiphers[i], Boolean.TRUE); > > System.out.println("Default\tCipher"); > for(Iterator i = ciphers.entrySet().iterator(); i.hasNext(); ) { > Map.Entry cipher=(Map.Entry)i.next(); > > if(Boolean.TRUE.equals(cipher.getValue())) > System.out.print('*'); > else > System.out.print(' '); > > System.out.print('\t'); > System.out.println(cipher.getKey()); > } > } >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 38170
: 8643 |
8644