org.apache.geronimo.crypto
Class SimpleEncryption
java.lang.Object
org.apache.geronimo.crypto.AbstractEncryption
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
INSTANCE
public static final SimpleEncryption INSTANCE
getSecretKeySpec
protected SecretKeySpec getSecretKeySpec()
- Specified by:
getSecretKeySpec
in class AbstractEncryption
Copyright © 2003-2008 The Apache Geronimo development community. All Rights Reserved.