org.apache.geronimo.crypto
Class SimpleEncryption

java.lang.Object
  extended by org.apache.geronimo.crypto.AbstractEncryption
      extended by org.apache.geronimo.crypto.SimpleEncryption
All Implemented Interfaces:
Encryption

public final class SimpleEncryption
extends AbstractEncryption

This class protects some value BY ENCRYPTING WITH A KNOWN KEY. That is to say, it's only safe against anyone who can't read the source code. So the main idea is to protect against casual observers. If someone has a better idea for how to implement encryption with a non-obvious key that the user isn't likely to change during the normal course of working with the server, I'd be happy to hear it. (But I assume the SSL keystore is likely to be changed, which would result in losing all the "encrypted" data.


Field Summary
static SimpleEncryption INSTANCE
           
 
Method Summary
protected  SecretKeySpec getSecretKeySpec()
           
 
Methods inherited from class org.apache.geronimo.crypto.AbstractEncryption
decrypt, encrypt
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INSTANCE

public static final SimpleEncryption INSTANCE
Method Detail

getSecretKeySpec

protected SecretKeySpec getSecretKeySpec()
Specified by:
getSecretKeySpec in class AbstractEncryption


Copyright © 2003-2008 The Apache Geronimo development community. All Rights Reserved.