Package com.hivemq.client.util
Class KeyStoreUtil
java.lang.Object
com.hivemq.client.util.KeyStoreUtil
Util for creating
TrustManagerFactories and KeyManagerFactories.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull KeyManagerFactorykeyManagerFromKeystore(@NotNull File keyStoreFile, @NotNull String keyStorePassword, @NotNull String privateKeyPassword) static @NotNull TrustManagerFactorytrustManagerFromKeystore(@NotNull File trustStoreFile, @NotNull String trustStorePassword)
-
Constructor Details
-
KeyStoreUtil
public KeyStoreUtil()
-
-
Method Details
-
trustManagerFromKeystore
@NotNull public static @NotNull TrustManagerFactory trustManagerFromKeystore(@NotNull @NotNull File trustStoreFile, @NotNull @NotNull String trustStorePassword) throws SSLException - Throws:
SSLException
-
keyManagerFromKeystore
@NotNull public static @NotNull KeyManagerFactory keyManagerFromKeystore(@NotNull @NotNull File keyStoreFile, @NotNull @NotNull String keyStorePassword, @NotNull @NotNull String privateKeyPassword) throws SSLException - Throws:
SSLException
-