public static void updateCiphers(final SSLContext sslContext) { SSLServerSocketFactory factory = sslContext.getServerSocketFactory(); String[] supportedCiphers = factory.getDefaultCipherSuites(); ciphersLock.writeLock().lock(); try { for (int i = 0, len = supportedCiphers.length; i < len; i++) { String s = supportedCiphers[i]; ciphers.put(s, new CipherInfo(s, s, (short) (SSL3 | TLS))); } } finally { ciphersLock.writeLock().unlock(); } }
serverSF.init(); newSslContext = serverSF.getSSLContext(); CipherInfo.updateCiphers(newSslContext); } catch (IOException e) { if (LOGGER.isLoggable(Level.WARNING)) {
serverSF.init(); newSslContext = serverSF.getSSLContext(); CipherInfo.updateCiphers(newSslContext); } catch (IOException e) { if (LOGGER.isLoggable(Level.WARNING)) {
public static void updateCiphers(final SSLContext sslContext) { SSLServerSocketFactory factory = sslContext.getServerSocketFactory(); String[] supportedCiphers = factory.getDefaultCipherSuites(); ciphersLock.writeLock().lock(); try { for (int i = 0, len = supportedCiphers.length; i < len; i++) { String s = supportedCiphers[i]; ciphers.put(s, new CipherInfo(s, s, (short) (SSL3 | TLS))); } } finally { ciphersLock.writeLock().unlock(); } }
private static String getJSSECipher(final String cipher) { final CipherInfo ci = CipherInfo.getCipherInfo(cipher); return ((ci != null) ? ci.getCipherName() : null); } // ---------------------------------------------------------- Nested Classes
private static String getJSSECipher(final String cipher) { final CipherInfo ci = CipherInfo.getCipherInfo(cipher); return ((ci != null) ? ci.getCipherName() : null); } // ---------------------------------------------------------- Nested Classes