|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.junit.Assert
org.apache.ws.security.message.EncryptionTest
public class EncryptionTest
A set of test-cases for encrypting and decrypting SOAP requests.
| Constructor Summary | |
|---|---|
EncryptionTest()
|
|
| Method Summary | |
|---|---|
void |
setUp()
Setup method |
void |
testBadAttribute()
|
void |
testEmbeddedEncryptedKey()
In this test an EncryptedKey structure is embedded in the EncryptedData structure. |
void |
testEncryptionDecryptionOAEP()
Test that encrypt and decrypt a WS-Security envelope. |
void |
testEncryptionDecryptionOAEPSHA256()
Test that encrypt and decrypt a WS-Security envelope. |
void |
testEncryptionDecryptionRSA15()
Test that encrypt and decrypt a WS-Security envelope. |
void |
testEncryptionDecryptionRSA15STR()
Test that encrypt and decrypt a WS-Security envelope. |
void |
testEncryptionEncryption()
Test that encrypt and then again encrypts (Super encryption) WS-Security envelope and then verifies it |
void |
testEncryptionSHA1Symmetric()
Test that encrypts using EncryptedKeySHA1, where it uses a symmetric key, rather than a generated session key which is then encrypted using a public key. |
void |
testEncryptionSHA1SymmetricBytes()
Test that encrypts using EncryptedKeySHA1, where it uses a symmetric key (bytes), rather than a generated session key which is then encrypted using a public key. |
void |
testEncryptionSHA1SymmetricBytesHandler()
Test that encrypts using EncryptedKeySHA1, where it uses a symmetric key, rather than a generated session key which is then encrypted using a public key. |
void |
testX509EncryptionSHA1()
Test that encrypts and decrypts a WS-Security envelope. |
void |
testX509EncryptionThumb()
Test that encrypts and decrypts a WS-Security envelope. |
| Methods inherited from class org.junit.Assert |
|---|
assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertThat, assertThat, assertTrue, assertTrue, fail, fail |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public EncryptionTest()
throws java.lang.Exception
java.lang.Exception| Method Detail |
|---|
public void setUp()
throws java.lang.Exception
java.lang.Exception - Thrown when there is a problem in setup
public void testEncryptionDecryptionRSA15()
throws java.lang.Exception
java.lang.Exception - Thrown when there is any problem in signing or verification
public void testEncryptionDecryptionOAEP()
throws java.lang.Exception
java.lang.Exception - Thrown when there is any problem in signing or verification
public void testEncryptionEncryption()
throws java.lang.Exception
java.lang.Exception - Thrown when there is any problem in encryption or
verification
public void testX509EncryptionThumb()
throws java.lang.Exception
java.lang.Exception - Thrown when there is any problem in encryption or decryption
public void testX509EncryptionSHA1()
throws java.lang.Exception
java.lang.Exception - Thrown when there is any problem in encryption or decryption
public void testEncryptionSHA1Symmetric()
throws java.lang.Exception
java.lang.Exception - Thrown when there is any problem in encryption or decryption
public void testEncryptionSHA1SymmetricBytes()
throws java.lang.Exception
java.lang.Exception - Thrown when there is any problem in encryption or decryption
public void testEncryptionSHA1SymmetricBytesHandler()
throws java.lang.Exception
java.lang.Exception - Thrown when there is any problem in encryption or decryption
public void testEncryptionDecryptionRSA15STR()
throws java.lang.Exception
java.lang.Exception
public void testBadAttribute()
throws java.lang.Exception
java.lang.Exception
public void testEmbeddedEncryptedKey()
throws java.lang.Exception
java.lang.Exception
public void testEncryptionDecryptionOAEPSHA256()
throws java.lang.Exception
java.lang.Exception - Thrown when there is any problem in signing or verification
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||