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
IOException
GeneralSecurityException
protected static PrivateKey loadPrivateKey(File file, String password) throws IOException, GeneralSecurityException
IOException
GeneralSecurityException
Copyright © 2012–2018 Graylog, Inc.. All rights reserved.