org.neo4j.server.security
Class SslCertificateFactory

java.lang.Object
  extended by org.neo4j.server.security.SslCertificateFactory

public class SslCertificateFactory
extends Object


Constructor Summary
SslCertificateFactory()
           
 
Method Summary
 void createSelfSignedCertificate(File certificatePath, File privateKeyPath, String hostName)
           
 Certificate[] loadCertificates(File certFile)
           
 PrivateKey loadPrivateKey(File privateKeyFile)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SslCertificateFactory

public SslCertificateFactory()
Method Detail

createSelfSignedCertificate

public void createSelfSignedCertificate(File certificatePath,
                                        File privateKeyPath,
                                        String hostName)

loadCertificates

public Certificate[] loadCertificates(File certFile)
                               throws CertificateException,
                                      FileNotFoundException
Throws:
CertificateException
FileNotFoundException

loadPrivateKey

public PrivateKey loadPrivateKey(File privateKeyFile)
                          throws IOException,
                                 NoSuchAlgorithmException,
                                 InvalidKeySpecException,
                                 NoSuchPaddingException,
                                 InvalidKeyException,
                                 InvalidAlgorithmParameterException
Throws:
IOException
NoSuchAlgorithmException
InvalidKeySpecException
NoSuchPaddingException
InvalidKeyException
InvalidAlgorithmParameterException


Copyright © 2002-2014 The Neo4j Graph Database Project. All Rights Reserved.