public class KeyUtil extends Object
| Constructor and Description |
|---|
KeyUtil() |
| Modifier and Type | Method and Description |
|---|---|
static KeyManager[] |
initKeyStore(File tlsKeyFile,
File tlsCertFile,
String tlsKeyPassword) |
static TrustManager[] |
initTrustStore(File tlsClientAuthCertFile) |
protected static void |
loadCertificates(KeyStore trustStore,
File certFile,
CertificateFactory cf) |
protected static PrivateKey |
loadPrivateKey(File file,
String password) |
public static TrustManager[] initTrustStore(File tlsClientAuthCertFile) throws KeyStoreException, CertificateException, NoSuchAlgorithmException, IOException
protected static void loadCertificates(KeyStore trustStore, File certFile, CertificateFactory cf) throws CertificateException, KeyStoreException, IOException
public static KeyManager[] initKeyStore(File tlsKeyFile, File tlsCertFile, String tlsKeyPassword) throws IOException, GeneralSecurityException
IOExceptionGeneralSecurityExceptionprotected static PrivateKey loadPrivateKey(File file, String password) throws IOException, GeneralSecurityException
IOExceptionGeneralSecurityExceptionCopyright © 2012-2016 Graylog, Inc.. All Rights Reserved.