org.edg.security.trustmanager
Class KeyStoreGenerator

java.lang.Object
  |
  +--org.edg.security.trustmanager.KeyStoreGenerator

public class KeyStoreGenerator
extends java.lang.Object

Generates a keystore from the certificate and the private key from the files.


Constructor Summary
KeyStoreGenerator()
           
 
Method Summary
static java.security.KeyStore generate(java.lang.String certFile, java.lang.String keyFile, org.bouncycastle.openssl.PasswordFinder finder, java.lang.String storePasswd)
          Generates the new KeyStore using the information given in the constructor.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KeyStoreGenerator

public KeyStoreGenerator()
Method Detail

generate

public static java.security.KeyStore generate(java.lang.String certFile,
                                              java.lang.String keyFile,
                                              org.bouncycastle.openssl.PasswordFinder finder,
                                              java.lang.String storePasswd)
                                       throws java.lang.Exception
Generates the new KeyStore using the information given in the constructor.

Returns:
Returns the new KeyStore.
Throws:
java.lang.Exception - Thrown is the certificate or private key reading fails.