|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.jfw.util.Secure
public final class Secure
Offer methods used in security processes. All methods ares static and thread safe.
| Constructor Summary | |
|---|---|
Secure()
|
|
| Method Summary | |
|---|---|
static java.lang.String |
decode(java.lang.String toDecode)
Decode a string from Base64. |
static byte[] |
decrypt(byte[] toDecrypt,
java.lang.String key4Decryption)
Decrypt an array of bytes using the Encryption class. |
static java.lang.String |
encode(java.lang.String toEncode)
Encode a string in Base64. |
static byte[] |
encrypt(byte[] toEncrypt,
java.lang.String key4Encryption)
Encrypt an array of bytes using the Encryption class. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Secure()
| Method Detail |
|---|
public static java.lang.String encode(java.lang.String toEncode)
toEncode - the string to encode.
public static java.lang.String decode(java.lang.String toDecode)
toDecode - the string to Decode.
public static byte[] encrypt(byte[] toEncrypt,
java.lang.String key4Encryption)
throws JFWGenericException
Encryption class.
toEncrypt - bytes to encrypt.key4Encryption - the encryption key to use.
JFWGenericException
public static byte[] decrypt(byte[] toDecrypt,
java.lang.String key4Decryption)
throws JFWGenericException
Encryption class.
toDecrypt - bytes to decrypt.key4Decryption - the decryption key to use.
an - exception can be throwed if the key4Decryption is wrong.
JFWGenericException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||