public class TlsUtils extends Object
Modifier and Type | Method and Description |
---|---|
static String |
getKeyStorePassword(String passwordFilePath)
Get the password from file.
|
static KeyStore |
openKeyStore(String keyStorePath,
String password)
Open up a key store.
|
public static KeyStore openKeyStore(String keyStorePath, String password) throws SSLException
keyStorePath
- Key store path stringpassword
- Key store passwordSSLException
- Thrown when there's an issue with loading the trust store.public static String getKeyStorePassword(String passwordFilePath) throws SSLException
passwordFilePath
- Path to password file.SSLException
- Wraps the IOException.Copyright © 2019 CorfuDB. All rights reserved.