com.rapidminer.tools.cipher
Class KeyGeneratorTool

java.lang.Object
  extended by 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

Constructor Summary
KeyGeneratorTool()
           
 
Method Summary
static void createAndStoreKey()
           
static javax.crypto.SecretKey createSecretKey()
           
static java.security.Key getUserKey()
           
static javax.crypto.spec.SecretKeySpec makeKey(byte[] rawKey)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KeyGeneratorTool

public KeyGeneratorTool()
Method Detail

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