org.glite.security.util
Class KeyStoreGenerator
java.lang.Object
org.glite.security.util.KeyStoreGenerator
public class KeyStoreGenerator
- extends java.lang.Object
Generates a keystore from the certificate and the private
key from the files.
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 |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
KeyStoreGenerator
public KeyStoreGenerator()
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.