|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object lumis.util.security.MessageDigestEncryptor
public class MessageDigestEncryptor
Uses a MessageDigest algorithm to encrypt data.
In the configuration, the value of algorithm node is used to specify the MessageDigest algorithm. If not specified the SHA-1 algorithm is used.
MessageDigest
Constructor Summary | |
---|---|
MessageDigestEncryptor()
|
Method Summary | |
---|---|
String |
decrypt(String value)
Decrypts a string. |
String |
encrypt(String value)
Encrypts a string. |
void |
init(Node configuration)
This method is called only once and before any other method are called. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MessageDigestEncryptor()
Method Detail |
---|
public void init(Node configuration) throws Exception
IEncryptor
init
in interface IEncryptor
Exception
public String encrypt(String value) throws Exception
IEncryptor
encrypt
in interface IEncryptor
value
- the original string.
Exception
public String decrypt(String value) throws Exception
IEncryptor
decrypt
in interface IEncryptor
value
- the encrypted string.
Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |