com.rapidminer.tools.cipher
Class KeyGeneratorTool
java.lang.Object
com.rapidminer.tools.cipher.KeyGeneratorTool
public class KeyGeneratorTool
- extends java.lang.Object
This class can be used to generate a new key and store it in the user
directory. Please note that existing keys will be overwritten
by objects of this class. That means that passwords stored with "old"
keys can no longer be decrypted.
- Author:
- Ingo Mierswa
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
KeyGeneratorTool
public KeyGeneratorTool()
createSecretKey
public static javax.crypto.SecretKey createSecretKey()
throws KeyGenerationException
- Throws:
KeyGenerationException
createAndStoreKey
public static void createAndStoreKey()
throws KeyGenerationException
- Throws:
KeyGenerationException
getUserKey
public static java.security.Key getUserKey()
throws java.io.IOException
- Throws:
java.io.IOException
makeKey
public static javax.crypto.spec.SecretKeySpec makeKey(byte[] rawKey)
Copyright © 2001-2009 by Rapid-I