|
||||||||||
| 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.SignatureTest
public class SignatureTest
A set of test-cases for signing and verifying SOAP requests.
| Constructor Summary | |
|---|---|
SignatureTest()
|
|
| Method Summary | |
|---|---|
void |
testBSTPKIPathSignature()
Test that signs and verifies a WS-Security envelope |
void |
testBSTSignature()
Test that signs and verifies a WS-Security envelope |
void |
testCustomSTR()
Create a signature that uses a custom SecurityTokenReference. |
void |
testDoubleX509SignatureIS()
Test that signs (twice) and verifies a WS-Security envelope. |
void |
testDoubleX509SignatureThumb()
Test that signs (twice) and verifies a WS-Security envelope. |
void |
testIssuerSerialSignature()
Test that signs and verifies a WS-Security envelope |
void |
testSignatureInclusiveC14N()
Test that signs and verifies a WS-Security envelope |
void |
testSignatureInclusivePrefixes()
Test that signs and verifies a WS-Security envelope |
void |
testSignedTimestamp()
Test that signs and verifies a Timestamp. |
void |
testValidModifiedSignature()
Test that signs and verifies a Timestamp. |
void |
testWSS170()
A test for "SignatureAction does not set DigestAlgorithm on WSSecSignature instance" |
void |
testWSS231()
A test for "There is an issue with the position of the |
void |
testWSS234()
This is a test for WSS-234 - "When a document contains a comment as its first child element, wss4j will not find the SOAP body." |
void |
testWSS283()
This is a test for WSS-283 - "ClassCastException when signing message with existing WSSE header containing Text as first child": https://issues.apache.org/jira/browse/WSS-283 |
void |
testX509Signature()
Test that signs and verifies a WS-Security envelope |
void |
testX509SignatureDefaultPassword()
The test uses the Issuer Serial key identifier type. |
void |
testX509SignatureIS()
The test uses the Issuer Serial key identifier type. |
void |
testX509SignatureSha256()
Sign using a different digest algorithm (SHA-256). |
void |
testX509SignatureThumb()
Test that signs and verifies 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 SignatureTest()
throws java.lang.Exception
java.lang.Exception| Method Detail |
|---|
public void testX509SignatureIS()
throws java.lang.Exception
java.lang.Exception - Thrown when there is any problem in signing or verification
public void testDoubleX509SignatureIS()
throws java.lang.Exception
java.lang.Exception - Thrown when there is any problem in signing or verification
public void testIssuerSerialSignature()
throws java.lang.Exception
java.lang.Exception - Thrown when there is any problem in signing or verification
public void testSignatureInclusiveC14N()
throws java.lang.Exception
java.lang.Exception - Thrown when there is any problem in signing or verification
public void testSignatureInclusivePrefixes()
throws java.lang.Exception
java.lang.Exception - Thrown when there is any problem in signing or verification
public void testBSTSignature()
throws java.lang.Exception
java.lang.Exception - Thrown when there is any problem in signing or verification
public void testBSTPKIPathSignature()
throws java.lang.Exception
java.lang.Exception - Thrown when there is any problem in signing or verification
public void testX509Signature()
throws java.lang.Exception
java.lang.Exception - Thrown when there is any problem in signing or verification
public void testX509SignatureThumb()
throws java.lang.Exception
java.lang.Exception - Thrown when there is any problem in signing or verification
public void testDoubleX509SignatureThumb()
throws java.lang.Exception
java.lang.Exception - Thrown when there is any problem in signing or verification
public void testValidModifiedSignature()
throws java.lang.Exception
java.lang.Exception - Thrown when there is any problem in signing or verification
public void testX509SignatureSha256()
throws java.lang.Exception
java.lang.Exception - Thrown when there is any problem in signing or verification
public void testWSS170()
throws java.lang.Exception
java.lang.Exception
public void testWSS234()
throws java.lang.Exception
java.lang.Exception
public void testSignedTimestamp()
throws java.lang.Exception
java.lang.Exception
public void testWSS283()
throws java.lang.Exception
java.lang.Exception
public void testCustomSTR()
throws java.lang.Exception
java.lang.Exception
public void testX509SignatureDefaultPassword()
throws java.lang.Exception
java.lang.Exception - Thrown when there is any problem in signing or verification
public void testWSS231()
throws java.lang.Exception
java.lang.Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||