Package bftsmart.tom.util
Class ECDSAKeyPairGenerator
- java.lang.Object
-
- bftsmart.tom.util.ECDSAKeyPairGenerator
-
public class ECDSAKeyPairGenerator extends java.lang.Object
Utility class used to generate a key pair for some process id on config/keys/publickeyand config/keys/privatekey
-
-
Constructor Summary
Constructors Constructor Description ECDSAKeyPairGenerator()
Creates a new instance of KeyPairGenerator
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static void
main(java.lang.String[] args)
void
run(int id, java.lang.String domainParam, java.lang.String provider)
Generate the key pair for the process with id =and put it on the files config/keys/publickey and config/keys/privatekey
-
-
-
Method Detail
-
run
public void run(int id, java.lang.String domainParam, java.lang.String provider) throws java.lang.Exception
Generate the key pair for the process with id =and put it on the files config/keys/publickey and config/keys/privatekey - Parameters:
id
- the id of the process to generate key- Throws:
java.lang.Exception
- something goes wrong when writing the files
-
main
public static void main(java.lang.String[] args) throws java.lang.Exception
- Throws:
java.lang.Exception
-
-