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 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 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–2020 Graylog, Inc.. All rights reserved.