public class KeyStoreHelper extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
DUMMY_PASSWORD |
| Constructor and Description |
|---|
KeyStoreHelper(KeyStore ks,
String password) |
| Modifier and Type | Method and Description |
|---|---|
KeyManager[] |
getKeyMgr() |
X509KeyManager |
getKeyMgr(String serverName) |
KeyManagerFactory |
getKeyMgrFactory() |
TrustManager[] |
getTrustMgr(String serverName) |
TrustManagerFactory |
getTrustMgrFactory(VertxInternal vertx) |
TrustManager[] |
getTrustMgrs(VertxInternal vertx) |
static List<String> |
getX509CertificateCommonNames(String dn) |
static KeyStore |
loadCA(Stream<Buffer> certValues) |
static KeyStore |
loadKeyCert(List<Buffer> keyValue,
List<Buffer> certValue) |
static KeyStore |
loadKeyStoreOptions(String type,
String provider,
String password,
Supplier<Buffer> value) |
KeyStore |
store() |
public static final String DUMMY_PASSWORD
public KeyManagerFactory getKeyMgrFactory() throws Exception
Exceptionpublic X509KeyManager getKeyMgr(String serverName)
public KeyManager[] getKeyMgr() throws Exception
Exceptionpublic TrustManager[] getTrustMgr(String serverName)
public TrustManagerFactory getTrustMgrFactory(VertxInternal vertx) throws Exception
Exceptionpublic TrustManager[] getTrustMgrs(VertxInternal vertx) throws Exception
Exceptionpublic KeyStore store()
public static List<String> getX509CertificateCommonNames(String dn) throws Exception
Exceptionpublic static KeyStore loadKeyStoreOptions(String type, String provider, String password, Supplier<Buffer> value) throws Exception
Exceptionpublic static KeyStore loadKeyCert(List<Buffer> keyValue, List<Buffer> certValue) throws Exception
ExceptionCopyright © 2021. All rights reserved.