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 loadCertificate(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)

loadCertificate

public Certificate loadCertificate(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-2012 The Neo4j Graph Database Project. All Rights Reserved.