Class KeyStoreGenerator
java.lang.Object
org.jgroups.demos.KeyStoreGenerator
Generates a keystore file that has a SecretKey in it. It is not possible to
use keytool to achieve this. This is a simple way to generate a
JCEKS format keystore and SecretKey.
Usage is --alg ALGNAME --size ALGSIZE --storeName FILENAME --storePass PASSWORD --alias KEYALIAS
Any of args are optional and will default to
Usage is --alg ALGNAME --size ALGSIZE --storeName FILENAME --storePass PASSWORD --alias KEYALIAS
Any of args are optional and will default to
- ALGNAME = Blowfish
- ALGSIZE = 56
- FILENAME = defaultStore.keystore
- PASSWORD = changeit
- ALIAS = mykey
- Author:
- S Woodcock
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
DEFAULT_SYM_ALGORITHM
- See Also:
-
DEFAULT_KEY_SIZE
-
DEFAULT_KEY_STORE_NAME
- See Also:
-
DEFAULT_KEY_STORE_PASS
- See Also:
-
DEFAULT_KEY_ALIAS
- See Also:
-
DEFAULT_KEY_STORE_TYPE
- See Also:
-
-
Constructor Details
-
KeyStoreGenerator
public KeyStoreGenerator() -
KeyStoreGenerator
-
-
Method Details
-
main
-
newKeyStoreGeneratorBuilder
-
generate
public void generate() -
help
protected static void help() -
createSecretKey
-
createSecretKey
public static SecretKey createSecretKey(String sym_alg, int key_size) throws NoSuchAlgorithmException - Throws:
NoSuchAlgorithmException
-