|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectch.elca.el4j.tests.services.security.AESEncryptionTest
public class AESEncryptionTest
This class tests the encryption and decryption using AES.
| Field Summary | |
|---|---|
private AESCipher |
m_cipher
The cipher used for en- and decryption. |
private String |
m_key
The generated key. |
private String |
m_text
The text that will be en- and decrypted. |
| Constructor Summary | |
|---|---|
AESEncryptionTest()
|
|
| Method Summary | |
|---|---|
void |
setUp()
Generates a cipher with a key. |
void |
testDecryption()
Tests the decryption of an encrypted text. |
void |
testEncryption()
Tests the encryption of a text. |
void |
testEnDecryption()
Encrypts and then decrypts a text and checks if the result of the decryption equals the input of the encryption (= the original text). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private AESCipher m_cipher
private String m_key
private String m_text
| Constructor Detail |
|---|
public AESEncryptionTest()
| Method Detail |
|---|
public void setUp()
throws Exception
Exceptionpublic void testEnDecryption()
public void testEncryption()
public void testDecryption()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||