public class Certificates extends Object
| Constructor and Description |
|---|
Certificates() |
| Modifier and Type | Method and Description |
|---|---|
void |
createSelfSignedCertificate(File certificatePath,
File privateKeyPath,
String hostName) |
Certificate[] |
loadCertificates(File certFile) |
PrivateKey |
loadPrivateKey(File privateKeyFile) |
public void createSelfSignedCertificate(File certificatePath, File privateKeyPath, String hostName) throws GeneralSecurityException, IOException
GeneralSecurityExceptionIOExceptionpublic Certificate[] loadCertificates(File certFile) throws CertificateException, IOException
CertificateExceptionIOExceptionpublic PrivateKey loadPrivateKey(File privateKeyFile) throws IOException, NoSuchAlgorithmException, InvalidKeySpecException, NoSuchPaddingException, InvalidKeyException, InvalidAlgorithmParameterException
Copyright © 2002–2015 The Neo4j Graph Database Project. All rights reserved.