|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Objectorg.jasypt.util.numeric.StrongDecimalNumberEncryptor
public final class StrongDecimalNumberEncryptor
Utility class for easily performing normal-strength encryption of BigDecimal objects.
This class internally holds a StandardPBEBigDecimalEncryptor
configured this way:
The required steps to use it are:
setPassword(String) or
setPasswordCharArray(char[])).encrypt(BigDecimal) or
decrypt(BigDecimal) operations.This class is thread-safe.
| Constructor Summary | |
|---|---|
StrongDecimalNumberEncryptor()
Creates a new instance of StrongDecimalNumberEncryptor. |
|
| Method Summary | |
|---|---|
java.math.BigDecimal |
decrypt(java.math.BigDecimal encryptedNumber)
Decrypts a number. |
java.math.BigDecimal |
encrypt(java.math.BigDecimal number)
Encrypts a number |
void |
setPassword(String password)
Sets a password. |
void |
setPasswordCharArray(char[] password)
Sets a password, as a char[]. |
| Methods inherited from class Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public StrongDecimalNumberEncryptor()
| Method Detail |
|---|
public void setPassword(String password)
password - the password to be set.public void setPasswordCharArray(char[] password)
password - the password to be set.public java.math.BigDecimal encrypt(java.math.BigDecimal number)
encrypt in interface DecimalNumberEncryptornumber - the number to be encrypted.StandardPBEBigDecimalEncryptor.encrypt(BigDecimal)public java.math.BigDecimal decrypt(java.math.BigDecimal encryptedNumber)
decrypt in interface DecimalNumberEncryptorencryptedNumber - the number to be decrypted.StandardPBEBigDecimalEncryptor.decrypt(BigDecimal)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||