This a command line tool for managing secret keys. The tool is needed because
the standard utilities 'keytool' and 'ikeyman' in IBM JRE 5.0 can only work
with public/private keys but not with secret keys.
The tool can generate and delete secret keys. It can also import a secret key
from one keystore to another.
Since:
7.0
Method Summary
static void
main(String[] args)
Call with no arguments to print a brief usage manual.
Call with no arguments to print a brief usage manual. The following
operations are provided:
"-genseckey" : Generates a secret key for the specified algorithm of the
specified size. The generated key is stored in the specified keystore
under the specified alias. If the keystore does not exist, it is created.
If the keystore already contains an entry under that alias, that entry is
overridden.
"-delete" : deletes an existing secret key from a keystore
"-importkey" : Imports a secret key from one keystore to another. If the
destination keystore does not exist, it is created. If the destination
keystore already contains an entry under the specified alias, that entry
is overridden.
"-list" : Lists the entries of a keystore. For each entry it is displayed
whether the entry is a certificate entry, a private key entry or a secret
key entry.
"-printseckey" : Prints information about a secret key from a keystore.
The displayed information includes the algorithm of the key. The size of
the key in bits and the actual raw key data.
Parameters:
args - command-line arguments
Throws:
Exception - incorrect syntax or an error encountered during the tool
operation