List of usage examples for javax.net.ssl X509ExtendedTrustManager getAcceptedIssuers
public X509Certificate[] getAcceptedIssuers();
From source file:org.elasticsearch.xpack.core.ssl.SSLServiceTests.java
public void testEmptyTrustManager() throws Exception { Settings settings = Settings.builder().build(); final SSLService sslService = new SSLService(settings, env); SSLConfiguration sslConfig = new SSLConfiguration(settings); X509ExtendedTrustManager trustManager = sslService.sslContextHolder(sslConfig).getEmptyTrustManager(); assertThat(trustManager.getAcceptedIssuers(), emptyArray()); }