use of io.vertx.core.net.impl.KeyStoreHelper in project vert.x by eclipse.
the class KeyStoreTest method testTrustStore.
private void testTrustStore(TrustOptions options) throws Exception {
KeyStoreHelper helper = KeyStoreHelper.create((VertxInternal) vertx, options);
TrustManager[] keyManagers = helper.getTrustMgrs((VertxInternal) vertx);
assertTrue(keyManagers.length > 0);
}
use of io.vertx.core.net.impl.KeyStoreHelper in project vert.x by eclipse.
the class KeyStoreTest method testKeyStore.
private void testKeyStore(KeyCertOptions options) throws Exception {
KeyStoreHelper helper = KeyStoreHelper.create((VertxInternal) vertx, options);
KeyStore keyStore = helper.loadStore((VertxInternal) vertx);
Enumeration<String> aliases = keyStore.aliases();
assertTrue(aliases.hasMoreElements());
KeyManager[] keyManagers = helper.getKeyMgrs((VertxInternal) vertx);
assertTrue(keyManagers.length > 0);
}
Aggregations