|
Adempiere 3.5.2a | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.compiere.util.Secure
public class Secure
Security Services.
Change log:
| Field Summary |
|---|
| Fields inherited from interface org.compiere.util.SecureInterface |
|---|
ADEMPIERE_SECURE, ADEMPIERE_SECURE_DEFAULT, CLEARVALUE_END, CLEARVALUE_START, ENCRYPTEDVALUE_END, ENCRYPTEDVALUE_START |
| Constructor Summary | |
|---|---|
Secure()
Adempiere Security |
|
| Method Summary | |
|---|---|
static byte[] |
convertHexString(String hexString)
Convert Hex String to Byte Array |
static String |
convertToHexString(byte[] bytes)
Convert Byte Array to Hex String |
BigDecimal |
decrypt(BigDecimal value)
Decryption. |
Integer |
decrypt(Integer value)
Decryption. |
String |
decrypt(String value)
Decryption. |
Timestamp |
decrypt(Timestamp value)
Decryption. |
BigDecimal |
encrypt(BigDecimal value)
Encryption. |
Integer |
encrypt(Integer value)
Encryption. |
String |
encrypt(String value)
Encryption. |
Timestamp |
encrypt(Timestamp value)
Encryption. |
String |
getDigest(String value)
Convert String to Digest. |
static int |
hash(String key)
Hash checksum number |
boolean |
isDigest(String value)
Checks, if value is a valid digest |
String |
toString()
String Representation |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Secure()
| Method Detail |
|---|
public static int hash(String key)
key - key
public static String convertToHexString(byte[] bytes)
bytes - bytes
public static byte[] convertHexString(String hexString)
hexString - hex string
public String encrypt(String value)
encrypt in interface SecureInterfacevalue - clear value
public String decrypt(String value)
decrypt in interface SecureInterfacevalue - encrypted value
public Integer encrypt(Integer value)
encrypt in interface SecureInterfacevalue - clear value
public Integer decrypt(Integer value)
decrypt in interface SecureInterfacevalue - encrypted value
public BigDecimal encrypt(BigDecimal value)
encrypt in interface SecureInterfacevalue - clear value
public BigDecimal decrypt(BigDecimal value)
decrypt in interface SecureInterfacevalue - encrypted value
public Timestamp encrypt(Timestamp value)
encrypt in interface SecureInterfacevalue - clear value
public Timestamp decrypt(Timestamp value)
decrypt in interface SecureInterfacevalue - encrypted value
public String getDigest(String value)
getDigest in interface SecureInterfacevalue - message
public boolean isDigest(String value)
isDigest in interface SecureInterfacevalue - digest string
public String toString()
toString in class Object
|
Adempiere 3.5.2a | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||