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) |
static Collection<? extends Certificate> |
loadCertificates(Path certificatePath) |
protected static PrivateKey |
loadPrivateKey(File file,
String password) |
static X509Certificate |
readCertificate(Path path) |
static PrivateKey |
readPrivateKey(Path path) |
public static TrustManager[] initTrustStore(File tlsClientAuthCertFile) throws KeyStoreException, CertificateException, NoSuchAlgorithmException, IOException
public static Collection<? extends Certificate> loadCertificates(Path certificatePath) throws CertificateException, IOException
CertificateExceptionIOExceptionpublic static KeyManager[] initKeyStore(File tlsKeyFile, File tlsCertFile, String tlsKeyPassword) throws IOException, GeneralSecurityException
IOExceptionGeneralSecurityExceptionprotected static PrivateKey loadPrivateKey(File file, String password) throws IOException, GeneralSecurityException
IOExceptionGeneralSecurityExceptionpublic static X509Certificate readCertificate(Path path) throws IOException
IOExceptionpublic static PrivateKey readPrivateKey(Path path) throws IOException
IOExceptionCopyright © 2012–2018 Graylog, Inc.. All rights reserved.