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, org.bouncycastle.operator.OperatorCreationException
GeneralSecurityExceptionIOExceptionorg.bouncycastle.operator.OperatorCreationExceptionpublic Certificate[] loadCertificates(File certFile) throws CertificateException, IOException
CertificateExceptionIOExceptionpublic PrivateKey loadPrivateKey(File privateKeyFile) throws IOException, NoSuchAlgorithmException, InvalidKeySpecException, NoSuchPaddingException, InvalidKeyException, InvalidAlgorithmParameterException
Copyright © 2002–2017 The Neo4j Graph Database Project. All rights reserved.