@Test public void xroadAcceptedCipherSuites() throws NoSuchAlgorithmException, KeyManagementException { String[] supported = SSLContextUtil.createXroadSSLContext().createSSLEngine().getSupportedCipherSuites(); String[] accepted = SystemProperties.getXroadTLSCipherSuites(); assertThat(Arrays.asList(supported), hasItems(accepted)); }
public static SSLContext createXroadSSLContext() throws KeyManagementException, NoSuchAlgorithmException { SSLContext ctx = SSLContext.getInstance(CryptoUtils.SSL_PROTOCOL); ctx.init(new KeyManager[] {AuthKeyManager.getInstance()}, new TrustManager[] {new AuthTrustManager()}, new SecureRandom()); return ctx; }
SSLContextUtil { public static SSLContext createXroadSSLContext() throws KeyManagementException, NoSuchAlgorithmException { SSLContext ctx = SSLContext.getInstance(CryptoUtils.SSL_PROTOCOL); ctx.init(new KeyManager[] {AuthKeyManager.getInstance()}, new TrustManager[] {new AuthTrustManager()}, new SecureRandom()); return ctx; } }
SSLContextUtil { public static SSLContext createXroadSSLContext() throws KeyManagementException, NoSuchAlgorithmException { SSLContext ctx = SSLContext.getInstance(CryptoUtils.SSL_PROTOCOL); ctx.init(new KeyManager[] {AuthKeyManager.getInstance()}, new TrustManager[] {new AuthTrustManager()}, new SecureRandom()); return ctx; } private  SSLContextUtil(); }
SSLContextUtil { public static SSLContext createXroadSSLContext() throws KeyManagementException, NoSuchAlgorithmException { SSLContext ctx = SSLContext.getInstance(CryptoUtils.SSL_PROTOCOL); ctx.init(new KeyManager[] {AuthKeyManager.getInstance()}, new TrustManager[] {new AuthTrustManager()}, new SecureRandom()); return ctx; } private  SSLContextUtil(); static SSLContext createXroadSSLContext(); }
SSLContextUtil { public static SSLContext createXroadSSLContext() throws KeyManagementException, NoSuchAlgorithmException { SSLContext ctx = SSLContext.getInstance(CryptoUtils.SSL_PROTOCOL); ctx.init(new KeyManager[] {AuthKeyManager.getInstance()}, new TrustManager[] {new AuthTrustManager()}, new SecureRandom()); return ctx; } private  SSLContextUtil(); static SSLContext createXroadSSLContext();  }